简体   繁体   中英

Implement UItabbarController + UInavigationBar in project

I have navigation controller based project. In my project I have Splash Screen & Login Screen where i have hidden the navigation controller.

Now i have to implement TabbarController in the application and It need to be shown the screen after Login Page.

I want to add it in AppDelegate.But my problem is that I have set rootviewcontroller of Window as navigation controller.

And Now i want to use Tabbar controller also into the Appdelegate class.

I am finding difficulty into it.

Any help will be appreciated a lot.

您可以做的是将rootviewcontroller设置为tabbarcontroller并为您的登录屏幕添加一个标签,但要确保在用户登录后最初隐藏该标签栏,在用户登录后,您可以通过编程方式删除该标签并显示该标签栏。

Maybe you really need that kind of navigation in your application, to me it sounds a bit of a unnecessary workaround and against guidelines. Try having a look at Apple's ( "View Controller Programming Guide > Combined View Controller Interfaces" ) and maybe you'll find a more elegant solution to your problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM