UISegmentedControl 改变选中字体的颜色
//设置选中的字体颜色为蓝色
[segmentControll setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor blueColor]} forState:UIControlStateSelected];
//设置未选中的字体颜色为白色
[segmentControll setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]} forState:UIControlStateNormal];
posted on 2015-01-12 18:10 taiyang2014 阅读(548) 评论(0) 收藏 举报
浙公网安备 33010602011771号