Enumeration

UIControlState

Constants describing the state of a control.

Declaration

typedef enum UIControlState : NSUInteger {
    ...
} UIControlState;

Overview

A control can have more than one state at a time. Controls can be configured differently based on their state. For example, a UIButton object can be configured to display one image when it is in its normal state and a different image when it is highlighted.

Topics

Constants

UIControlStateNormal

The normal, or default state of a control—that is, enabled but neither selected nor highlighted.

UIControlStateHighlighted

Highlighted state of a control.

UIControlStateDisabled

Disabled state of a control.

UIControlStateSelected

Selected state of a control.

UIControlStateFocused

Focused state of a control.

UIControlStateApplication

Additional control-state flags available for application use.

UIControlStateReserved

Control-state flags reserved for internal framework use.