【问题标题】:Navigate from a navigation bar view controller to a tab bar view controller从导航栏视图控制器导航到标签栏视图控制器
【发布时间】:2016-05-30 13:34:29
【问题描述】:

这种方法有什么问题?它背后没有编码。但是,我看不到右边最后一个场景的项目或标题(因为它们的标题设置为“看不到”)。

即使我添加了一个后退按钮,并将其标题设置为某些内容,它仍会继续显示默认的后退按钮。

The storyboard

【问题讨论】:

    标签: ios uinavigationcontroller uitabbarcontroller


    【解决方案1】:

    您正在将 UITabBarViewController 实例推入 UINavigationViewController 堆栈。在这种情况下,导航栏由 UINavigationController 管理,这样您就不会在导航栏中看到“看不到”UIBarButtonItem。

    UITabBarViewController 如果是应用程序的 rootViewController 效果最好。看看这个unswear,看看应该如何使用 UITabBarViewController。

    【讨论】: