UITabBar tintColor is not changed storyboard

ios, objective-c, uitabbar, uitabbarcontroller

Solution

Use this code in `didFinishLaunchingWithOptions:` method of your `appDelegate`

[[UITabBar appearance] setSelectedImageTintColor: [UIColor redColor]];

Replace red color with color you want.

Problem

I have set a global tintColor, and I can see it in the interface builder, when I select UITabBar as well as UITabBarController, still when I run the application, the tint of the selected UITabBarItem is iOS default (blue), and not what I have set. What am I missing? P.S. UITabBarController is pushed to navigationController, it is not the rootViewController

Original source