views:

438

answers:

2

When you have more than 5 view controller in your TabBarController, a "More" view is automatically setup for you. Is it possible to change color of the navigationBar in this view to match the color I am using, instead of the default blue?

A: 

I only know that this works:

yournavigationController.navigationBar.tintColor = [UIColor blueColor];

But I do not know if it works therfore.

Tim
A: 

OK. I should not have trusted the docs completele. I found the answer a couple of minutes later by trying it out. The docs lists the 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 anyone was wondering.

Canada Dev
The fact that the property is read only means you can't assign to it, not that you cannot change properties of the object it references.You cannot do `tabBarController.moreNavigationController = something;`.
pgb