Instance Method

setRouteButtonImage(_:for:)

Assigns a button image to the specified control states.

Declaration

func setRouteButtonImage(_ image: UIImage?, for state: UIControl.State)

Parameters

image

The image to associate with the specified states.

state

The control state with which to associate the image.

Discussion

Use this to customize the appearance of the route button when it is enabled, disabled, highlighted, and so on.

See Also

Customizing the Route Button

func routeButtonImage(for: UIControl.State) -> UIImage?

Returns the button image associated with the specified control state.

Deprecated
func routeButtonRect(forBounds: CGRect) -> CGRect

Returns the drawing rectangle for the route button.

Deprecated