Programmatically set the initial view controller using Storyboards

前端 未结 22 1950
感情败类
感情败类 2020-11-22 15:00

How do I programmatically set the InitialViewController for a Storyboard? I want to open my storyboard to a different view depending on some condition which may

22条回答
  •  遇见更好的自我
    2020-11-22 15:20

    Select the view controller which you want to open first and go to attribute inspector. Go to initial scene and check is initial view controller option.

    Now this will be your initial view controller that will open first when application launch.

提交回复
热议问题