Structure

UIControl.Event

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: UIControl.Event

A touch-down event in the control.

static var touchDownRepeat: UIControl.Event

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: UIControl.Event

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

static var touchDragOutside: UIControl.Event

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

static var touchDragEnter: UIControl.Event

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

static var touchDragExit: UIControl.Event

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

static var touchUpInside: UIControl.Event

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

static var touchUpOutside: UIControl.Event

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

static var touchCancel: UIControl.Event

A system event canceling the current touches for the control.

static var valueChanged: UIControl.Event

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

static var primaryActionTriggered: UIControl.Event

A semantic action triggered by buttons.

static var editingDidBegin: UIControl.Event

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

static var editingChanged: UIControl.Event

A touch making an editing change in a UITextField object.

static var editingDidEnd: UIControl.Event

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

static var editingDidEndOnExit: UIControl.Event

A touch ending an editing session in a UITextField object.

static var applicationReserved: UIControl.Event

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

static var systemReserved: UIControl.Event

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

static var allEvents: UIControl.Event

All events, including system events.

Relationships

Conforms To