UIControlState Enum

Definition

An enumeration of possible states for a UIControl.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum UIControlState
type UIControlState = 
Inheritance
UIControlState
Attributes

Fields

Application 16711680

Mask for application defined states for a control. Possible application-reservedd values are 0x00010000 to 0x00ff0000.

Disabled 2

Control is in the disabled state. You can change this through the Enabled property of the control.

Focused 8

Indicates that the control has the focus.

Highlighted 1

Control is highlighted. You can change this through the Highlighted property of the control.

Normal 0

The normal state of the control (not disabled and not higlighted)

Reserved 4278190080

Reserved mask, no states should be defined in this range by the application.

Selected 4

Selected state of the control. You can change this value by accessing the Selected property of the UIControl.

Remarks

Flags representing the state of a control.

Applies to