How to set the Navigation Bar Color of the Tab Bar Configure Menu

后端 未结 8 496
离开以前
离开以前 2021-02-03 21:39

removed dead ImageShack link

As you can see the view I need to change is the provided view to customize the tabbar order. I want to change the color of the navi

相关标签:
8条回答
  • 2021-02-03 21:56

    Can be easier (use in tab bar delegate):

    - (void)tabBarController:(UITabBarController *)tabBarController willBeginCustomizingViewControllers:(NSArray *)viewControllers {
    id modalViewCtrl = [[[tabBarController view] subviews] objectAtIndex:1];  
    if([modalViewCtrl isKindOfClass:NSClassFromString(@"UITabBarCustomizeView")] == YES)
        ((UINavigationBar*)[[modalViewCtrl subviews] objectAtIndex:0]).tintColor = [UIColor redColor];
    }
    
    0 讨论(0)
  • 2021-02-03 22:12

    If you are looking for the standard colors (Gray, Black, White), you can set these values within xCode 5. Select the entire view controller, and select the attributes inspector. Under the attributes you will find a drop-down next to "Top Bar". There you can select various setting for color and opacity for the navigation bar controller.

    Outlined below are a few screenshots. Hope this helps!

    enter image description here

    enter image description here

    0 讨论(0)
提交回复
热议问题