tabbarcontroller作为子视图 [英] tabbarcontroller as a subview

查看:37
本文介绍了tabbarcontroller作为子视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有一个带有navcontroller的主视图屏幕,其中有两个UIbutton.
现在我希望当我按下一个按钮时,将推送一个子视图.我知道该怎么办.
问题是我希望此子视图与tabbarcontroller一起使用.
我知道如何在主视图(在应用程序委托内)上实现标签栏,但是作为子视图,我确实很难.我应该如何实施呢?谢谢.

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.

推荐答案

不要.许多 时间 此处 在他们的文档中,要推到导航控制器上的控制器不应是标签栏控制器.

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.

这篇关于tabbarcontroller作为子视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆