ios - 更改 'More' 选项卡的导航栏色调颜色

标签 ios colors navigation

我的 UITabBar 中有 7 个标签. iOS自动将最后 2 个选项卡分组到一个名为“更多”的选项卡中。我已经为 viewDidLoad 中的 7 个选项卡设置了导航栏色调颜色如下:

 self.navigationController.navigationBar.tintColor = [UIColor blackColor];

如何为自动生成的“更多”选项卡设置导航栏的颜色?

最佳答案

您可以访问self.tabBarController.moreNavigationController获取用户点击更多标签栏项目时出现的导航 Controller 。现在您可以执行修改和自定义。例如,您可以更改其导航栏的样式。例子:

UINavigationController* more = self.tabBarController.moreNavigationController;
more.navigationBar.barStyle = UIBarStyleBlack;

有关如何自定义点击更多标签栏项目时显示的内容的更多信息,请参阅我的书的这一部分:

http://www.apeth.com/iOSBook/ch25.html#_uitabbar

关于ios - 更改 'More' 选项卡的导航栏色调颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15703167/

相关文章:

iOS 自动续订订阅和 restoreCompletedTransactions() : is the transaction removed from the queue after expiration or cancellation?

javascript - 将 Minecraft 颜色代码转换为 HTML

java - rgb 中的肤色范围是多少?

android - 手机上的谷歌地图可以有插件吗?

Magento 分层导航 - 按计数排序

c# - 如何将 CSS 应用于带母版页的导航栏?

ios - 在 iPhone 中看不到地址簿联系人

objective-c - 在哪里创建 navigationController 以便我可以使用 pushViewController 函数

ios - Xamarin Storyboard 在构建 661 后无法正确呈现

android - 如何更改我的 Android 应用程序中所有文本的默认颜色?