Set title color

suggest change

color and controlState must already exist. This Swift call is Swift 2.

button.setTitleColor(color, forState: controlState)
[button setTitleColor:color forState:controlState];

To set the title color to blue. This Swift call is Swift 3.

button.setTitleColor(.blue, for: .normal)
[button setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents