Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change TintColor Tab Bar Item selected in iOS 7.1

i have a problem, because since i did the last update of the SDK, my tint color for my tab bar don't run.... It stays blue tint, and not green.

I tried to do that in my viewdidload :

[[UITabBar appearance] setTintColor:[UIColor greenColor]];

But it's not running... Someone to help me please ?

like image 604
deveLost Avatar asked Mar 13 '14 15:03

deveLost


1 Answers

Appearance proxy API should be called before a view is loaded. Once viewDidLoad is called, it is already too late.

Move your appearance calls to the AppDelegate's applicationDidFinishLaunching:withOptions:.

like image 110
Léo Natan Avatar answered Nov 07 '22 19:11

Léo Natan