Share via


UIButton.UIButtonAppearance.SetBackgroundImage Method

Definition

Sets the background image for the specified state.

[Foundation.Export("setBackgroundImage:forState:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SetBackgroundImage(UIKit.UIImage? image, UIKit.UIControlState forState);
[<Foundation.Export("setBackgroundImage:forState:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetBackgroundImage : UIKit.UIImage * UIKit.UIControlState -> unit
override this.SetBackgroundImage : UIKit.UIImage * UIKit.UIControlState -> unit

Parameters

image
UIImage
forState
UIControlState
Attributes

Applies to