---
title: "sendActions(for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicontrol/sendactions(for:)"
---

# sendActions(for:)

Calls the action methods associated with the specified events.

## Declaration

```swift
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 doc://com.apple.uikit/documentation/UIKit/UIControl/Event for bitmask constants.

## Discussion

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

- [addTarget(_:action:for:)](uikit/uicontrol/addtarget(_:action:for:).md)

### Triggering actions

- [performPrimaryAction()](uikit/uicontrol/performprimaryaction().md)
- [sendAction(_:)](uikit/uicontrol/sendaction(_:).md)
- [sendAction(_:to:for:)](uikit/uicontrol/sendaction(_:to:for:).md)
