Contents

sendActions(for:)

Calls the action methods associated with the specified events.

Declaration

func sendActions(for controlEvents: UIControl.Event)

Parameters

  • controlEvents:

    A bitmask with flags that specify the control events for which the control sends action messages. See Event for bitmask constants.

Discussion

You call this method when you want the control to perform the actions associated with the specified events. This method iterates over the control’s registered targets and action methods and calls the sendAction(_:to:for:) method for each one that is associated with an event in the controlEvents parameter.

See Also

Related Documentation

Triggering actions