1

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

3 Answers 3

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

Sign up to request clarification or add additional context in comments.

2 Comments

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?
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?
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.

Comments

0

[[UINavigationBar appearance] setBarStyle:UIBarStyleBlackOpaque];

place this in the AppDelegate under - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.