---
title: allTargets
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicontrol/alltargets
---

# allTargets

Returns all target objects associated with the control.

## Declaration

```swift
var allTargets: Set<AnyHashable> { get }
```

## Return Value

Return Value A set of all target objects associated with the control. The returned set may include one or more NSNull objects to indicate actions that are dispatched to the responder chain.

## See Also

### Managing the control’s targets and actions

- [addTarget(_:action:for:)](uikit/uicontrol/addtarget(_:action:for:).md)
- [removeTarget(_:action:for:)](uikit/uicontrol/removetarget(_:action:for:).md)
- [addAction(_:for:)](uikit/uicontrol/addaction(_:for:).md)
- [removeAction(_:for:)](uikit/uicontrol/removeaction(_:for:).md)
- [removeAction(identifiedBy:for:)](uikit/uicontrol/removeaction(identifiedby:for:).md)
- [actions(forTarget:forControlEvent:)](uikit/uicontrol/actions(fortarget:forcontrolevent:).md)
- [allControlEvents](uikit/uicontrol/allcontrolevents.md)
- [enumerateEventHandlers(_:)](uikit/uicontrol/enumerateeventhandlers(_:).md)
- [UIControl.Event](uikit/uicontrol/event.md)
