Instance Method

sendActions(for:)

Calls the action methods associated with the specified events.

Declaration

func sendActions(for controlEvents: UIControl.Event)

Parameters

controlEvents

A bitmask whose set flags specify the control events for which action messages are sent. See UIControl.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

Triggering Actions

func sendAction(Selector, to: Any?, for: UIEvent?)

Calls the specified action method.