views:

321

answers:

2

Hi,

Is it possible to have the icons in a TabBar and / or the "More navigation controller" be in colors other than grey and black? I tried changing the color of the icon I set for the view controller using UITabBarItem's

- (id)initWithTitle:(NSString *)title image:(UIImage *)image tag:(NSInteger)tag

method.

My client thinks the interface is too dark and want's to brighten it up with some colorful icons...

Thanks!

A: 

Nope :( The buttons on a tabbar or toolbar are drawn with the alpha channel so they don't have color although the .png has.

So, you can subclass the TabBar or ToolBar and implement your own buttons drawing the entire bar.

Espuz
That's pretty much what I expected. Thanks!
Malakim
A: 

Another idea is to have another XIB file that acts as a toolbar or tab bar of sorts. You can make it look exactly the same and even animate into view like a toolbar or tab bar would. You can then pass global variables through the App Delegate or via a Singleton to share with the other active view if necessary.

A good example of adding a subview into the view is the "Hidden Drawer" example code found here (just change the screen dimensions since this version pops the view in at the top, whereas you want it at the bottom).

http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html

If you can't figure it out, let me know and I have working code at home that I can post up here for you.

Rob

iWasRobbed