How to change the default View Controller that is loaded when app launches?

前端 未结 4 1118
别那么骄傲
别那么骄傲 2021-01-05 16:39

I have an application, say \'MyApp\', which by default loads the view controller \'MyAppViewController\' whenever the application launches. Later, I added a new view control

4条回答
  •  春和景丽
    2021-01-05 17:05

    Its easy, just:

    • Open your Storyboard
    • Click on the View Controller corresponding to the view that you want to be the initial view
    • Open the Attributes Inspector
    • Select the "Is Initial View Controller" check box in the View Controller section

提交回复
热议问题