Implement UItabbarController + UInavigationBar in project

倾然丶 夕夏残阳落幕 提交于 2019-12-24 10:01:25

问题


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.


回答1:


What you can do is set the rootviewcontroller as a tabbarcontroller and add a tab for your login screen but make sure to hide the tabbar initially, after the user login, you can remove the tab programatically and show the tabbar.




回答2:


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.



来源:https://stackoverflow.com/questions/8681319/implement-uitabbarcontroller-uinavigationbar-in-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!