Change the color of the NavigationBar on the Advanced tab?

When your TabBarController has more than 5 view controllers, the More view is automatically set for you. Is it possible to change the color of the navigation bar in this view to match the color I'm using instead of the default blue?

+4
source share
4 answers

OK I should not have completely trusted the documents. I found the answer after a couple of minutes, having tried it. The docs indicate that moreNavigationController is a read-only property. But this works fine for me:

tabBarController.moreNavigationController.navigationBar.barStyle = UIBarStyleBlackOpaque; 

or

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

In case someone wondered.

+10
source

I only know that this works:

 yournavigationController.navigationBar.tintColor = [UIColor blueColor]; 

But I don't know if this works before.

+1
source

In the UIApplicationDelegate application UIApplicationDelegate put this:

 self.tabBarController.moreNavigationController.navigationBar.tintColor = [UIColor blackcolor]; 
+1
source

accommodation

 tabBarController.moreNavigationController.navigationBar.tintColor = [UIColor colorWithRed:64/256.0 green:191/256.0 blue:23/256.0 alpha:1.0]; 

in my main application delegate

0
source

All Articles