Programmatically set the initial view controller using Storyboards
问题 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 vary from launch to launch. 回答1: How to without a dummy initial view controller Ensure all initial view controllers have a Storyboard ID. In the storyboard, uncheck the "Is initial View Controller" attribute from the first view controller. If you run your app at this point you'll read: Failed to instantiate the default view controller