views:

2275

answers:

2

Duplicate:

Custom colors in UITabBar

The iPhone UITabBar generally uses a blue and gray icon scheme. However, the iPod Touch ships with an application from Nike that has a red icon overlay, as opposed to the blue overlay. Here's a screen shot:

Image Link

How do I do that? Do I use the hidden setSelectedImage method in UITabBarItem? If so, when do I call this? Any other ideas?

Thanks!

+1  A: 

There is no supported way to do that without custom drawing. Tab bar items don't even use the colors in your images, only the alpha channel. See also: Changing Tint / Background color of UITabBar.

Chris Lundie
+1  A: 

This can be done with a little private API hacking.

rpetrich