StoryBoard Reference的介绍
- StoryBoard Reference是Xcode7,iOS9出现的新功能
- 目的是让我们可以更好的使用storyboard来开发项目
- 在之前的开发中,如果使用一个storyboard开发,那么非常容易造成代码冲突
- 可以通过使用storyboard创建控制器的方式解决.
- 官方目前推出了StoryBoard Reference的方式
- 优点:
- 允许你从 segue 中引用其他 storyboard 中的 viewController
- 可以将不同模块放到不同Storyboard中
- 阅读性好
- 齐头并进, 加快开发效率
- 不容易出现SVN/GIT错误
如何使用StoryBoard Reference
- 方式一:
- 1.选中需要的控制器
- 2.点击导航条Editor
- 3.选择下拉菜单Refactor to storyboard
- 方式二:
- 1.在控件库中拖入Storyboard References
- 2.新建一个Storyboard
- 3.关联新建的storyboard到Storyboard References
纯代码和Storyboard如何选择
- Storyboard前期开发速度快
- Storyboard容易重复造轮子
- 纯代码维护方便
相关文章:
-
2021-12-12
-
2021-06-13
-
2021-12-22
-
2021-06-07
-
2022-12-23
-
2021-10-23
-
2021-09-23
-
2021-12-30
猜你喜欢
-
2021-06-30
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2021-07-14
-
2021-05-21
相关资源
-
下载
2023-01-15
-
下载
2023-02-21
-
下载
2023-01-19
-
下载
2023-01-06
-
下载
2023-01-20