Search code examples
iosiphonestoryboardpoint

Multiple entry points to a storyboard


I need to make a set of decisions in the AppDelegate on launch - depending on the outcome of those decisions I need to go to specific parts of the storyboard.

So my question is - WITHOUT using any nav or tab controllers, how do I go to a specific part of a storyboard?

OR

Is the only supported option having multiple storyboards - for each of the 'outcomes' and then loading those as required?

Thanks


Solution

  • Give each of your ViewControllers a separate ID, and then instantiate the required one with:

    UIViewController *initialVC = [storyboard instantiateViewControllerWithIdentifier:@"<identifier>"];