自定义UISwitch

在页面中

1 [self.rentSwitch setOnTintColor:[UIColor colorWithRed:0 green:175.0/255
2                                                      blue:176.0/255.0
3                                                     alpha:1.0]];        // 设置选中时控件的颜色
原文地址:https://www.cnblogs.com/sell/p/2915702.html