Jenifer
Jenifer

Reputation: 1

Run time viewcontroller

I am creating an app with a tab bar. However, when the app starts, I don't want it to display the tab bar. Instead I would like to show a login page. After a successful log in, the tab bar based application should be shown.

Is this possible in code? I did it with Interface Builder.

Upvotes: 0

Views: 58

Answers (2)

gsempe
gsempe

Reputation: 5499

Modal view controllers is the way you can do what you want. As it is said in the documentation

Modal view controllers are a tool that you have at your disposal for interrupting the current workflow and displaying a new set of views.

Upvotes: 0

Wolfgang Schreurs
Wolfgang Schreurs

Reputation: 11834

Just create a Window-based Application and create a ViewController with a TabBar that you can show once login is successful.

Upvotes: 1

Related Questions