码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-04-27 11:28:35      阅读:105      评论:0      收藏:0      [点我收藏+]

标签:

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


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

标签:

原文地址:http://my.oschina.net/bufenye/blog/406720

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!