<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIControl/actions(forTarget:forControlEvent:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIControl(im)actionsForTarget:forControlEvent:"
  },
  "title" : "actions(forTarget:forControlEvent:)"
}
-->

# actions(forTarget:forControlEvent:)

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

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

## Parameters

`target`

The target object—that is, an object that has an action method associated with this control. You must pass an explicit object for this method to return a meaningful result. Specifying `nil` always returns `nil`.

`controlEvent`

A single control event constant representing the event for which you want the list of action methods. For a list of possible constants, see [`UIControl.Event`](/documentation/UIKit/UIControl/Event)

## Return Value

An array <doc://com.apple.documentation/documentation/Foundation/NSString> objects containing the selector names of the corresponding action methods, or `nil` if there are no action methods associated with the specified target object and control event.

## Discussion

Use this method to determine what action methods are called on the specified object in response to a particular control event. You can use the <doc://com.apple.documentation/documentation/Foundation/NSSelectorFromString(_:)> function to convert the returned strings to valid selectors, as needed.

## See Also

[`sendAction(_:to:for:)`](/documentation/UIKit/UIControl/sendAction(_:to:for:))

Calls the specified action method.

[`sendActions(for:)`](/documentation/UIKit/UIControl/sendActions(for:))

Calls the action methods associated with the specified events.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)