Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 208 Bytes

UISwitch改变系统默认的颜色.md

File metadata and controls

7 lines (6 loc) · 208 Bytes

UISwitch改变系统默认的颜色

方法很简单:更改tintColor、onTintColor这两个属性,就可。

[self.myswitch setOnTintColor:kDGSWCol];
[self.myswitch setTintColor:kDGSWCol];