Edit

Share via


UIButton.ImageForState(UIControlState) Method

Definition

The UIImage used for the specified state.

[Foundation.Export("imageForState:")]
public virtual UIKit.UIImage ImageForState (UIKit.UIControlState state);
abstract member ImageForState : UIKit.UIControlState -> UIKit.UIImage
override this.ImageForState : UIKit.UIControlState -> UIKit.UIImage

Parameters

Returns

Attributes

Remarks

This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.

Applies to