0

I am new to Storyboard-ing, been using IB mostly. I have an initial temporary View Controller (let's call it BootstrapViewController) which job is solely to load data from a webservice, then hand over control to a UITabViewController. The data is required to determine what tab items to show.

In non-Storyboard world, I just do:

// Do whatever you need to UITabViewController, then call this
[UIApplication sharedApplication].keyWindow.rootViewController = myTabVC;

Is this possible using Storyboard? I tried creating a named segue from BootstrapViewController to the tab view controller, then calling performSegueWithIdentifier, no luck.

2
  • Maybe I am approaching this wrong? Should I take BootstrapViewController out of the Storyboard, load it first, then manually load the MainStoryBoard? Commented Mar 26, 2012 at 23:02
  • Or put UINavigationController -> BootstrapViewController -> UITabViewController. Then call performSegueWithIdentifier Commented Mar 26, 2012 at 23:43

1 Answer 1

1

You can do it exactly the same way you have always done it, by setting the window's rootViewController property. You can even load the tab bar out of a storyboard. Use UIStoryboard's instantiateViewControllerWithIdentifier: to load a particular view controller from a storyboard.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.