问题解决了,首先吐槽下百度,翻了好几页都没找到,Google一下就搞定了,Google不在天朝发展对中国程序员来说损失不少时间。。。
原文
http://stackoverflow.com/questions/21615637/how-to-change-uiviewcontroller-title-independent-of-tabbar-item-title
经典部分:
self.navigationItem.title
= @"my title"; sets navigation bar title.
self.tabBarItem.title
= @"my title"; sets tab bar title.
self.title
= @"my title"; sets both of these.
本文介绍如何在Swift中为UINavigationController和UITabBarController分别设置不同的标题。通过使用self.navigationItem.title, self.tabBarItem.title 和 self.title属性,可以实现导航栏和TabBar项标题的独立设置。
1万+

被折叠的 条评论
为什么被折叠?



