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
属性

适用于