1.Swift实现
myButton.setTitleColor(greenColor, for: .normal)
2.Oc实现
[myButton setTitleColor:[UIColor greenColor] forState:UIControlStateNormal];
1.Swift实现
myButton.setTitleColor(greenColor, for: .normal)
2.Oc实现
[myButton setTitleColor:[UIColor greenColor] forState:UIControlStateNormal];
本文标题:Swift和Oc设置Button的文字颜色
本文链接:https://www.haomeiwen.com/subject/gedevltx.html
网友评论