UISegmentedControl 改变选中字体的颜色

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

 
 
原文地址:https://www.cnblogs.com/tian-sun/p/4218965.html