سؤال

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 ?

هل كانت مفيدة؟

المحلول

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:.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top