Programmatically set the initial view controller using Storyboards

前端 未结 22 2228
感情败类
感情败类 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条回答
  •  旧时难觅i
    2020-11-22 15:06

    I don't think it's possible. Instead you can have one initial controller which will have segues to different view controllers. On startup, you can decide which segue to perform programmatically.

提交回复
热议问题