tabbarcontroller as a subview

2019-09-10 14:54发布

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条回答
再贱就再见
2楼-- · 2019-09-10 15:29

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.

查看更多
登录 后发表回答