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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -