tabbarcontroller as a subview

拈花ヽ惹草 提交于 2019-12-25 11:15:27

问题


I have a main view screen with navcontroller in my app with two UIbuttons.
Now i want that when I press one button a subview will be pushed. this I know how to do.
The problem is that I want this subview to be with tabbarcontroller.
I know how to implement tabbar on the main views (within the app delegate), but I have really hard time to do this as a subview.. How should I implement this? Thanks.


回答1:


Don't. It's been dealt with many times here before that there is no supported way to have a tab bar controller as a subview of a navigation controller. Apple even says in their documentation that the controller to push onto a navigation controller should not be a tab bar controller.



来源:https://stackoverflow.com/questions/2830012/tabbarcontroller-as-a-subview

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