iOS 7.1: UITabBarItems have default color -
seems line not work correctly after 7.1 update anymore:
nsdictionary *tabbartitletextattributes = [nsdictionary dictionarywithobjectsandkeys:[uicolor colorwithred:0.059 green:0.737 blue:0.596 alpha:1.0], nsforegroundcolorattributename, nil]; [[uitabbaritem appearance] settitletextattributes:tabbartitletextattributes forstate:uicontrolstateselected];
it works me.
[[uitabbaritem appearance] settitletextattributes:@{nsforegroundcolorattributename : [uicolor redcolor]} forstate:uicontrolstateselected];
my setup
- iphone 4s
- xcode 5.1
- ios 7.1
Comments
Post a Comment