改变UITabBarItem 字体颜色 [UI 自定义]

[homeTabItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor redColor],UITextAttributeTextColor, nil] forState:UIControlStateNormal];//正常
    
     [homeTabItem setTitleTextAttributes:                                                         [NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],UITextAttributeTextColor, nil]forState:UIControlStateSelected];//被选中


你可能感兴趣的:(改变UITabBarItem 字体颜色 [UI 自定义])