iOS 5 storyboard, programmatically determine path

后端 未结 3 700
故里飘歌
故里飘歌 2020-12-07 18:18

I\'m having trouble to achieve the following using a storyboard:

When setup is not done: run app -> show settings view controller -> show main navigation controller

3条回答
  •  自闭症患者
    2020-12-07 18:32

    I managed to do it a bit different:

    1. Use a UINavigationController as the initial view controller.
    2. Create a root view controller that will manage the decision of what to load.
    3. Create a Storyboard Segues from the root view controller to the main view and to settings view, and give the segues proper identifiers.
    4. Call the performSegueWithIdentifier with the proper identifier from your root view controller.

    Just another solution, hope this helps.

提交回复
热议问题