iOS中如何修改UISegmentedControl的背景颜色和字体的颜色UISegmentedControl

segmentedControlStyle在iOS7 之后设置没有效果了

那么如何快速的设置

UISegmentedControl的背景颜色呢?

#define RGBACOLOR(r, g, b, a)   [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]


segmentController.tintColor=RGBACOLOR(123, 203, 184, 1);

这两句话就可以搞定了

版权声明:本文为darongzi1314原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。