iOS 设置色调颜色
示例
目标C
//用于断电状态 mySwitch.tintColor = [UIColor blueColor]; [mySwitch setTintColor: [UIColor blueColor]]; //用于状态 mySwitch.onTintColor = [UIColor cyanColor]; [mySwitch setOnTintColor: [UIColor cyanColor]];
迅速
//用于断电状态 mySwitch.tintColor = UIColor.blueColor() //用于状态 mySwitch.onTintColor = UIColor.cyanColor()