Initializer

init(name:target:selector:)

Returns an initialized custom action object with the specified name.

Declaration

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:

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

Return Value

An initialized custom action object.

See Also

Initializing a Custom Action

init(attributedName: NSAttributedString, target: Any?, selector: Selector)

Returns an initialized custom action object with the specified name.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software