Search code examples
colorsuitabbaruitabbaritemios7.1

How can I change a color of image and label on UITabBar on iOS 7.1?


How can I change a color of image and label on UITabBar on iOS 7.1? On iOS 7 I could make it by Tint property. But on iOS 7.1 it doesn't work.


Solution

  • This changes the tint of both the image and the label, when selected.

    - (void)viewDidLoad
    {
        [super viewDidLoad];
        [[UITabBar appearance] setTintColor:[UIColor redColor]];
    }