Share via


UIButton.UIButtonAppearance.ImageForState(UIControlState) Method

Definition

The UIImage used for the specified state.

[Foundation.Export("imageForState:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UIImage ImageForState(UIKit.UIControlState state);
[<Foundation.Export("imageForState:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ImageForState : UIKit.UIControlState -> UIKit.UIImage
override this.ImageForState : UIKit.UIControlState -> UIKit.UIImage

Parameters

Returns

Attributes

Applies to