titleColor(for:)
Returns the title color used for a state.
Declaration
func titleColor(for state: UIControl.State) -> UIColor?Parameters
- state:
The state that uses the title color. The possible values are described in State Swift.struct.
Return Value
The color of the title for the specified state.