<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIAccessibilityCustomAction/init(name:target:selector:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIAccessibilityCustomAction(im)initWithName:target:selector:"
  },
  "title" : "init(name:target:selector:)"
}
-->

# init(name:target:selector:)

Creates a custom action object with the specified name, target, and selector.

```
init(name: String, target: Any?, selector: Selector)
```

## Parameters

`name`

The localized name of the action. Provide a short and descriptive name for the action.

`target`

The object that performs the action.

`selector`

The selector of `target` to call when you want to perform the action. The method signature must take one of the following forms:

```objc
- (BOOL)myPerformActionMethod
- (BOOL)myPerformActionMethod:(UIAccessibilityCustomAction *)action
```

## Return Value

An initialized custom action object.

---

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)