Is there any way to change the text color of a uitabbar
item from default gray to white and the selected color to blue?
Is there any way to change the text color of a uitabbar
item from default gray to white and the selected color to blue?
Old question, but I have a new answer that is supported in iOS 5 onwards (also I'm using LLVM 4.0 literals)
[[UITabBarItem appearance] setTitleTextAttributes:@{ NSForegroundColorAttributeName : [UIColor whiteColor] }
forState:UIControlStateNormal];
[[UITabBarItem appearance] setTitleTextAttributes:@{ NSForegroundColorAttributeName : [UIColor blueColor] }
forState:UIControlStateSelected];