在 UITabBarController 中自定义更多内容 - “配置”

发布于 2024-10-07 15:08:58 字数 624 浏览 0 评论 0原文

如何修改UITabBarController中“更多”中“配置”的UINavigationBarTintColor?

我在 UITabBarController 中有 10 个 UINavigationController (一切都使用 Interface builder。)

我可以使用 Interface builder 轻松设置所有 UINavigationController 的 UINavigationBar 的色调颜色。

同样我还发现我们可以修改更多的色调颜色,如下所示。

tBarDashboard.moreNavigationController.navigationBar.tintColor=
[UIColor colorWithRed:30/255.0 green:103/255.0 blue:7/255.0 alpha:1.0];
// here tbarDashboard is my UITabBarController.

但是如果 tabbarcontroller 中有太多导航控制器,TabBarController 默认允许配置导航控制器的排列。

我的问题是“如何修改配置”屏幕的色调颜色?”。

How to modify the UINavigationBarTintColor for "Configure" in "more" in UITabBarController?

I have 10 UINavigationController within a UITabBarController (everything using Interface builder. )

I can easily set the tint color of all UINavigationController's UINavigationBar using Interface builder.

Similarly I also found that we can modify the More's Tint color as follows.

tBarDashboard.moreNavigationController.navigationBar.tintColor=
[UIColor colorWithRed:30/255.0 green:103/255.0 blue:7/255.0 alpha:1.0];
// here tbarDashboard is my UITabBarController.

But TabBarController default allows to configure the arrangement of navigation controllers if we have too many navigation controllers in tabbarcontroller.

My question is "how to modify the tint color of Configure screen?".

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

め七分饶幸 2024-10-14 15:08:58

哎呀!我用谷歌搜索&我发现了一些东西。我期待着研究它。

http://sugartin.info/2012/01/23/uitabbarcontroller- more-configure-customization/

哟!我得到了它。

- (void)tabBarController:(UITabBarController *)controller willBeginCustomizingViewControllers:(NSArray *)viewControllers {
    UIView *editView = [controller.view.subviews objectAtIndex:1];
    UINavigationBar *modalNavBar = [editView.subviews objectAtIndex:0];
    modalNavBar.tintColor = [UIColor orangeColor];
}

oops ! I googled & I found something. I looking towards study it.

http://sugartin.info/2012/01/23/uitabbarcontroller-more-configure-customization/

Yo ! I got it.

- (void)tabBarController:(UITabBarController *)controller willBeginCustomizingViewControllers:(NSArray *)viewControllers {
    UIView *editView = [controller.view.subviews objectAtIndex:1];
    UINavigationBar *modalNavBar = [editView.subviews objectAtIndex:0];
    modalNavBar.tintColor = [UIColor orangeColor];
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文