UISegmentedControl 改变选中字体的颜色

时间:2015-01-12 19:07:02   收藏:0   阅读:579

       //设置选中的字体颜色为蓝色
    [segmentControll setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor blueColor]} forState:UIControlStateSelected];
        //设置未选中的字体颜色为白色
    [segmentControll setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]} forState:UIControlStateNormal];

 
 

原文:http://www.cnblogs.com/tian-sun/p/4218965.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!