问题
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