Tab Bar color customizing
suggest changetabBarBackgroundColor, tabBarInactiveColor, and appBlueColor are not UIKit methods. They have to be defined elsewhere. Set the appearance proxy before those bars are created. backgroundColor does not paint a tab bar the way barTintColor does.
[[UITabBar appearance] setTintColor:[UIColor whiteColor]];
[[UITabBar appearance] setBarTintColor:[UIColor tabBarBackgroundColor]];
[[UITabBar appearance] setBackgroundColor:[UIColor tabBarInactiveColor]];
[[UINavigationBar appearance] setBarTintColor:[UIColor appBlueColor]];
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
[[UINavigationBar appearance] setBarStyle:UIBarStyleBlack];
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents