Search code examples
iosstoryboarduistoryboardxcode-storyboard

Where do I put a loginView in a storyboard?


Newest Xcode. Storyboards for iPhone and iPad. Generated an application with two tab views. I see them both in the storyboard.

Now I'd like to have a situation where I want a login screen to pop up before the first tab. Is that something I do in the storyboard? or should I code this manually?


Solution

  • You could do it with a storyboard. One way would be to make the login view controller the initial scene in the storyboard. Another would be to arrange for the view controller from the initial scene programmatically present the login view controller before doing anything else.

    Storyboards and .xib files are tools for creating whatever user interface you want, whether that's a login screen or something else. Use them if they're convenient or otherwise provide some benefit, and feel free to skip them if something else works better for you.