Initializes the gesture recognizer with the specified target and action information.
- macOS 10.10+
The object whose action method is called when the gesture is recognized. You must not specify
nilfor this parameter.
A selector that identifies the method to call when the gesture is recognized. This method must be implemented by the object in
target. You must not specify
nilfor this parameter. Your method must have one of the following signatures:
The initialized gesture recognizer object or
nil if an error occurred.
This method is the designated initializer. Subclasses must call this method from their own custom initialization methods. Call the method before performing other tasks.
This method records the specified
action values and prepares the gesture recognizer for use.