Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 355

RedStorm
Aspiring developer
Profile
Posts: 10
Reg: Sep 15, 2011
ottawa
100
07/04/12 09:48 AM (13 years ago)

Tab Bar Icon Color Change

So im rooting around in the code to find the proper place to put this, ive been looking in BT_rotatingTabBarController.m and other places but my goal is to change it for ios 5 from blue to green but for ios 4 have it stay blue because its not supported as far as I've found. This is the source of the code I've found http://stackoverflow.com/questions/9148787/ios-change-tabbar-item-color-is-safe if ([UITabBar instancesRespondToSelector:@selector(setSelectedImageTintColor:)]) { [tabBarController.tabBar setSelectedImageTintColor:[UIColor greenColor]]; } Any help would be great!
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
07/04/12 09:54 PM (13 years ago)
 
RedStorm
Aspiring developer
Profile
Posts: 10
Reg: Sep 15, 2011
ottawa
100
like
07/05/12 03:19 PM (13 years ago)
Unfortunately that is not what I'm talking about. What I'm talking about is when you tap on a tab the tab becomes highlighted blue. I want to change that blue color to something else, in this case green. I know it is possible and have been tinkering with it for a couple days but can't get it to work. Thanks
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
07/05/12 09:31 PM (13 years ago)
Ok! I don't think you can change that color. You have to made a new custom tabbar. The blue color is a default shine effect.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.