Billy
Billy

Reputation: 23

Change UINavigationbar color for "More" tab?

I'm currently using

self.navigationController.navigationBar.tintColor = [UIColor orangeColor];

to change the color of my UINavigationBars in my iOS application. However my app now has so many tab bar items it uses Apple's default "More" controller to manage the extra items. Unfortunately, I can't seem to work out how to change the color of the "More" UINavigationBar. Any ideas?

Thanks.

EDIT: Found you can do it - see http://cduu.wordpress.com/2010/08/27/uinavigationbar-color-of-more-tab/ for more.

Upvotes: 2

Views: 3484

Answers (2)

Ryan
Ryan

Reputation: 16636

Don't build a custom toolbar, just use a custom view for your UIBarButtonItem. For an example of this, check out

http://developer.apple.com/library/ios/#samplecode/AddMusic/Listings/Classes_MainViewController_m.html%23//apple_ref/doc/uid/DTS40008845-Classes_MainViewController_m-DontLinkElementID_6

On that page, look in the -handle_NowPlayingItemChanged: method where it creates a UIBarButtonItem with a UIButton as its custom view.

Upvotes: 1

Aaron Saunders
Aaron Saunders

Reputation: 33335

It cannot be done. you might want to build a custom "toolbar" if you want that kind of control.

Upvotes: 0

Related Questions