Xcode how to change which viewController loads first at start-up

给你一囗甜甜゛ 提交于 2019-12-12 10:47:19

问题


I am using storyboards, xcode 4.6.1. I have created an app, but now I want to go back and add a new view controller to the beginning. How do I assign this view controller to be the first one to load up at run-time?


回答1:


Choose your viewcontroller in storyboard , click show the attributes inspector

and choose initial scene: is initial view controller




回答2:


Xcode 10.3

Show Inspectors -> Show the Attributes inspector -> Is Initial View Controller

It will update the Initial view controller in the same .storyboard.



来源:https://stackoverflow.com/questions/15840449/xcode-how-to-change-which-viewcontroller-loads-first-at-start-up

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