[英]Navigate from a navigation bar view controller to a tab bar view controller
What is wrong with this approach? 这种方法有什么问题? There is no coding behind it.
其后没有任何编码。 But, I cannot see the item nor the title of the last scene on the right (as their titles are set to "cannot see").
但是,我看不到项目或右边最后一个场景的标题(因为它们的标题设置为“看不到”)。
Even if I add a back button, and set it's title to something, it keeps showing the default back button. 即使我添加了后退按钮并将其标题设置为某些内容,它仍会显示默认的后退按钮。
You are pushing UITabBarViewController instance in to UINavigationViewController stack. 您正在将UITabBarViewController实例推入UINavigationViewController堆栈中。 In such case navigation bar is managed by UINavigationController that is way you don't see "Cannot see" UIBarButtonItem in the nav bar.
在这种情况下,导航栏由UINavigationController管理,这是您在导航栏中看不到“无法看到” UIBarButtonItem的方式。
UITabBarViewController works best if it is the rootViewController of the application. 如果UITabBarViewController是应用程序的rootViewController,则效果最好。 Take a look at this unswear to see how UITabBarViewController should be used.
看看这个烂摊子 ,看看应该如何使用UITabBarViewController。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.