Set title color
suggest changecolor 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];
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents