共用方式為


UIButton.UIButtonAppearance.SetImage(UIImage, UIControlState) 方法

定義

設定指定狀態的 UIImage。

[Foundation.Export("setImage:forState:")]
public virtual void SetImage (UIKit.UIImage image, UIKit.UIControlState forState);
abstract member SetImage : UIKit.UIImage * UIKit.UIControlState -> unit
override this.SetImage : UIKit.UIImage * UIKit.UIControlState -> unit

參數

image
UIImage
forState
UIControlState
屬性

適用於