I have multiple tabs (more than 5) in the tab bar in my app, and when this happens, xcode automatically makes the last tab a "more" tab and puts the last tabs in it. The problem is, I have navigation bars in the other tabs that are a different color than any of the default colors, and the automatically generated "more" tab is the default blue color. I was wondering if there was any way to change this?
Thanks a lot
Sam
Asked
Active
Viewed 1,675 times
1

EmptyStack
- 51,274
- 23
- 147
- 178

Sam
- 799
- 2
- 8
- 14
3 Answers
3
tabBarController.moreNavigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;
or
tabBarController.moreNavigationController.navigationBar.tintColor = [UIColor orangeColor];
See this answer for customizing the navigation bar colour of the "edit" modal view controller: Link
-
That works for the more tab, but there is also an "edit" option in the nav bar that comes up with a "configure" screen. how do i change the color of that one? – Sam Aug 18 '11 at 20:25
-
I tried asking this question on the original post but maybe you would know: Where do I put the "viewDidLoad" part. i cant put it in the app delegate, so where? – Sam Aug 18 '11 at 23:33
1
This reads to me like you actually want to change the color of a selected tabbaritem. If so, then this post has myriad solutions: Custom colors in UITabBar
Otherwise, if you mean what you write in the title, you can change the color of a navigation bar by changing the tintColor
property.
0
[[UINavigationBar appearance] setBarStyle:UIBarStyleBlackOpaque];
place this in the AppDelegate under - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions