iOS 设置标题颜色
示例
//Swiftbutton.setTitleColor(color, forControlState: controlState)
//Objective-C
[button setTitleColor:(nullable UIColor *) forState:(UIControlState)];
将标题颜色设置为蓝色
//Swiftbutton.setTitleColor(.blue, for: .normal)
//Objective-C
[button setTitleColor:[UIColor blueColor] forState:UIControlStateNormal]
以上是 iOS 设置标题颜色 的全部内容, 来源链接: utcz.com/z/356602.html