views:

6168

answers:

4

Our designers want to change the color of the default UITabBar. Of course they do.

They want the background to be green, and the icon highlights to be white, as opposed to the black/blue default color scheme.

Anyone have any experience or suggestions to do this?

+5  A: 

You have to subclass the UITabBarController and implement custom drawing.

Check out this SO question. http://stackoverflow.com/questions/571028/changing-tint-background-color-of-uitabbar

JWD
Wow. I can't believe I missed that one. I SWEAR I searched an read through several but somehow I missed that one. Thanks.
Matt Dawdy
A: 

Be careful. If your app is going for submission to the app store, Apple may reject it if you're modifying their prescribed color scheme.

Marc W
Great point, but I'm not that worried about it. Epicurious has an app that has a red tabbar with white icons.
Matt Dawdy
Apple won't reject for custom tab/nav bars unless they interfere with usability - i.e. hot pink on neon green.
ceejayoz
A: 

This can be done with a little private API hacking.

rpetrich
A: 

Theres a useful link here: http://duivesteyn.net/2010/01/16/iphone-custom-tabbar-background-image/

norskben