Instance Method

preferredSymbolConfigurationForImageInState:

Returns the preferred symbol configuration for a button state.

Declaration

- (UIImageSymbolConfiguration *)preferredSymbolConfigurationForImageInState:(UIControlState)state;

Parameters

state

The state that uses the symbol configuration. Possible values are described in UIControlState.

See Also

Configuring Button Presentation

adjustsImageWhenHighlighted

A Boolean value that determines whether the image changes when the button is highlighted.

adjustsImageWhenDisabled

A Boolean value that determines whether the image changes when the button is disabled.

showsTouchWhenHighlighted

A Boolean value that determines whether tapping the button causes it to glow.

- backgroundImageForState:

Returns the background image used for a button state.

- imageForState:

Returns the image used for a button state.

- setBackgroundImage:forState:

Sets the background image to use for the specified button state.

- setImage:forState:

Sets the image to use for the specified state.

- setPreferredSymbolConfiguration:forImageInState:

Sets the preferred symbol configuration for a button state.

tintColor

The tint color to apply to the button title and image.