UIButton.SetImage(UIImage, UIControlState) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the image for the specified button state.
[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
Parameters
- forState
- UIControlState
- Attributes
Remarks
This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.