Enumeration

UIControlEvents

Constants describing the types of events possible for controls.

Declaration

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

Overview

You set up a control so that it sends an action message to a target object by associating both target and action with one or more control events. To do this, send addTarget:action:forControlEvents:: to the control for each Target-Action pair you want to specify.

Topics

Constants

UIControlEventTouchDown

A touch-down event in the control.

UIControlEventTouchDownRepeat

A repeated touch-down event in the control; for this event the value of the UITouch tapCount method is greater than one.

UIControlEventTouchDragInside

An event where a finger is dragged inside the bounds of the control.

UIControlEventTouchDragOutside

An event where a finger is dragged just outside the bounds of the control.

UIControlEventTouchDragEnter

An event where a finger is dragged into the bounds of the control.

UIControlEventTouchDragExit

An event where a finger is dragged from within a control to outside its bounds.

UIControlEventTouchUpInside

A touch-up event in the control where the finger is inside the bounds of the control.

UIControlEventTouchUpOutside

A touch-up event in the control where the finger is outside the bounds of the control.

UIControlEventTouchCancel

A system event canceling the current touches for the control.

UIControlEventValueChanged

A touch dragging or otherwise manipulating a control, causing it to emit a series of different values.

UIControlEventPrimaryActionTriggered

A semantic action triggered by buttons.

UIControlEventEditingDidBegin

A touch initiating an editing session in a UITextField object by entering its bounds.

UIControlEventEditingChanged

A touch making an editing change in a UITextField object.

UIControlEventEditingDidEnd

A touch ending an editing session in a UITextField object by leaving its bounds.

UIControlEventEditingDidEndOnExit

A touch ending an editing session in a UITextField object.

UIControlEventAllEditingEvents

All editing touches for UITextField objects.

UIControlEventApplicationReserved

A range of control-event values available for application use.

UIControlEventSystemReserved

A range of control-event values reserved for internal framework use.

UIControlEventAllEvents

All events, including system events.