How to convert a project using XIBs to Storyboard?

纵然是瞬间 提交于 2019-12-05 20:36:00

问题


I have some complex XIB files in a project using TabBarViewControllers containing navigation controllers. Since Xcode 4.2 I cannot edit those XIB files usefully anymore: the contained view controllers are invisible, only represented as grey boxes. It seems that in Storyboard projects this is the default, and the next layer in the storyboard shows the details of the contained views / view controllers. So how can I switch my project to use a storyboard instead?


回答1:


The objects are grayed out because of autolayout. Xcode understands that your controllers are not belonging to the current autolayout type.

To make the objects active, select one by one, select the attributes editor (see picture) and at the end of it, see if there is a checked word installed checked out. If there is more items them, delete all them and keep/add only the installed one.



来源:https://stackoverflow.com/questions/9458072/how-to-convert-a-project-using-xibs-to-storyboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!