Freigeben über


UIBarButtonItem.SetBackButtonBackgroundImage Methode

Definition

Ermöglicht das Festlegen des Hintergrundbilds der Schaltfläche.

[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

Parameter

backgroundImage
UIImage

Das Hintergrundbild der Schaltfläche.

Dieser Parameter kann null sein.

forState
UIControlState

Der Zustand, für den das Hintergrundbild festgelegt werden soll.

barMetrics
UIBarMetrics

Die Balkenmetriken für das Hintergrundbild

Attribute

Hinweise

Dieses Element nimmt am Formatierungssystem teil UIAppearance . Sehen Sie sich die Appearance -Eigenschaft und die -Methode an AppearanceWhenContainedIn(Type[]) .

Gilt für: