init(name:target:selector:)
Creates a custom action object with the specified name, target, and selector.
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
targetto 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.