_switchButton.onTintColor = HEXCOLORA(0xDC143C, 1);
_switchButton.tintColor=HEXCOLORA(0x708090,1);
_switchButton.backgroundColor = HEXCOLORA(0x708090, 1);
_switchButton.layer.cornerRadius = 31/2.0;
_switchButton.layer.masksToBounds = true;
_switchButton.onTintColor = HEXCOLORA(0xDC143C, 1);
_switchButton.tintColor=HEXCOLORA(0x708090,1);
_switchButton.backgroundColor = HEXCOLORA(0x708090, 1);
_switchButton.layer.cornerRadius = 31/2.0;
_switchButton.layer.masksToBounds = true;
本文标题:ios switch开关状态的颜色修改
本文链接:https://www.haomeiwen.com/subject/xsillttx.html
网友评论