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

设置tabbar的选中状态下标签文字的颜色

时间:2016-07-19 13:33:35      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:

    // 1.设置选中文字颜色

    [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor colorWithRed:234/255.0 green:50/255.0 blue:64/255.0 alpha:1],NSForegroundColorAttributeName, nil] forState:UIControlStateSelected];

设置tabbar的选中状态下标签文字的颜色

标签:

原文地址:http://www.cnblogs.com/lys-iOS-study/p/5684208.html

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