Instance Property

allControlEvents

Returns the events for which the control has associated actions.

Declaration

var allControlEvents: UIControl.Event { get }

Return Value

A bitmask of constants indicating the events for which this control has associated actions. For a list of possible constants, see the UIControl.Event type.

Discussion

You can use this method to ascertain which control events trigger actions. More than one action method may be called for a given event.

See Also

Accessing the Control’s Targets and Actions

func addTarget(Any?, action: Selector, for: UIControl.Event)

Associates a target object and action method with the control.

func removeTarget(Any?, action: Selector?, for: UIControl.Event)

Stops the delivery of events to the specified target object.

func actions(forTarget: Any?, forControlEvent: UIControl.Event) -> [String]?

Returns the actions performed on a target object when the specified event occurs.

var allTargets: Set<AnyHashable>

Returns all target objects associated with the control.