iphone - 更改 "More"选项卡的导航栏颜色?

标签 iphone uinavigationcontroller uitabbarcontroller

当您的 TabBarController 中有超过 5 个 View Controller 时,系统会自动为您设置一个“更多” View 。是否可以更改此 View 中导航栏的颜色以匹配我正在使用的颜色,而不是默认的蓝色?

最佳答案

好的。我不应该完全相信这些文档。几分钟后我通过尝试找到了答案。文档列出了 moreNavigationController 是一个只读属性。但这对我来说效果很好:

tabBarController.moreNavigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;

tabBarController.moreNavigationController.navigationBar.tintColor = [UIColor redColor];

以防有人想知道。

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

相关文章:

ios - 实现 didReceiveRemoteNotification 以在推送到来时显示新的 viewController

swift - 当我搜索时,Cell 中的按钮操作不起作用

ios - 状态栏与 UITableView 混合在一起

iphone - 来自 OpenGL 的 CMSampleBuffer,用于使用 AVAssestWritter 进行视频输出

iPhone 应用程序上传问题

ios - 自定义导航栏

ios - iPhone 6 和 6 plus 中的 TabBar

ios - 选项卡栏 Controller 项目中 2 个 ViewController 之间的通信

objective-c - 重新加载 UICollectionView 导致闪烁

ios - 如何在 iPhone 中单击按钮的下拉列表中显示 tableview?