Upravit

Sdílet prostřednictvím


UIBarButtonItem.SetBackButtonBackgroundImage Method

Definition

Allows the button's background image to be set.

[Foundation.Export("setBackButtonBackgroundImage:forState:barMetrics:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetBackButtonBackgroundImage (UIKit.UIImage backgroundImage, UIKit.UIControlState forState, UIKit.UIBarMetrics barMetrics);
abstract member SetBackButtonBackgroundImage : UIKit.UIImage * UIKit.UIControlState * UIKit.UIBarMetrics -> unit
override this.SetBackButtonBackgroundImage : UIKit.UIImage * UIKit.UIControlState * UIKit.UIBarMetrics -> unit

Parameters

backgroundImage
UIImage

The button's background image.

This parameter can be null.

forState
UIControlState

The state to set the background image for.

barMetrics
UIBarMetrics

The bar metrics to se thte background image for

Attributes

Remarks

This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.

Applies to