共用方式為


UIBarButtonItem.SetBackButtonBackgroundImage 方法

定義

允許設定按鈕的背景影像。

[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

參數

backgroundImage
UIImage

按鈕的背景影像。

這個參數可以是 null

forState
UIControlState

要設定背景影像的狀態。

barMetrics
UIBarMetrics

要設定背景影像的橫條圖計量

屬性

備註

此成員參與 UIAppearance 樣式系統。 Appearance請參閱 屬性和 AppearanceWhenContainedIn(Type[]) 方法。

適用於