backgroundImage(for:)
Returns the background image associated with the specified control state.
Declaration
func backgroundImage(for state: UIControl.State) -> UIImage?Parameters
- state:
The control state in which the image is displayed.
Return Value
The background image used by the control when it is in the specified state.