Structure

UIControlEvents

Constants describing the types of events possible for controls.

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:for:): to the control for each Target-Action pair you want to specify.

Topics

Constants

static var touchDown: UIControlEvents

A touch-down event in the control.

static var touchDownRepeat: UIControlEvents

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

static var touchDragInside: UIControlEvents

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

static var touchDragOutside: UIControlEvents

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

static var touchDragEnter: UIControlEvents

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

static var touchDragExit: UIControlEvents

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

static var touchUpInside: UIControlEvents

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

static var touchUpOutside: UIControlEvents

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

static var touchCancel: UIControlEvents

A system event canceling the current touches for the control.

static var valueChanged: UIControlEvents

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

static var primaryActionTriggered: UIControlEvents

A semantic action triggered by buttons.

static var editingDidBegin: UIControlEvents

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

static var editingChanged: UIControlEvents

A touch making an editing change in a UITextField object.

static var editingDidEnd: UIControlEvents

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

static var editingDidEndOnExit: UIControlEvents

A touch ending an editing session in a UITextField object.

static var applicationReserved: UIControlEvents

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

static var systemReserved: UIControlEvents

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

static var allEvents: UIControlEvents

All events, including system events.

Relationships

Conforms To