UIControlState UIControlState Enum


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)]
public enum UIControlState
type UIControlState = 


Application Application 16711680

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

Disabled Disabled 2

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

Focused Focused 8

Indicates that the control has the focus.

Highlighted Highlighted 1

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

Normal Normal 0

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

Reserved Reserved 4278190080

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

Selected Selected 4

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


Flags representing the state of a control.

Applies to