开发者

Run time viewcontroller

开发者 https://www.devze.com 2023-03-14 05:00 出处:网络
I am creating an app with a tab bar. However, when the app starts, I don\'t want it to display the t开发者_开发百科ab bar. Instead I would like to show a login page. After a successful log in, the tab

I am creating an app with a tab bar. However, when the app starts, I don't want it to display the t开发者_开发百科ab 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.


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消