Contents

init(attributedName:target:selector:)

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

Declaration

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

Parameters

  • attributedName:

    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

Creating a custom action