OStack程序员社区-中国程序员成长平台

标题: ios - 从导航栏 View Controller 导航到标签栏 View Controller [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 16:37
标题: ios - 从导航栏 View Controller 导航到标签栏 View Controller

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

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

The storyboard



Best Answer-推荐答案


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

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

关于ios - 从导航栏 View Controller 导航到标签栏 View Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37527031/






欢迎光临 OStack程序员社区-中国程序员成长平台 (http://ostack.cn/) Powered by Discuz! X3.4