I'm using this code to change UITabBar
color, its text color/font and the color of the selected item.
[[UITabBarItem appearance] setTitleTextAttributes:@{NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-Light" size:10.0f],
NSForegroundColorAttributeName : [UIColor blackColor]
} forState:UIControlStateSelected];
[[UITabBarItem appearance] setTitleTextAttributes:@{NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-Light" size:10.0f],
NSForegroundColorAttributeName : [UIColor whiteColor]
} forState:UIControlStateNormal];
//change tabbarcolor
[[UITabBar appearance] setBarTintColor:[UIColor redColor]];
//to change the tabbar elements color
[[UITabBar appearance] setTintColor:[UIColor greenColor]];
My problem is I want to change the color of the NON SELECTED UITabBarItem
s, that are in grey color per default. How can I do that ?
Thank you.