Initializes an allocated gesture-recognizer object with a target and an action selector.
- iOS 3.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
An object that is the recipient of action messages sent by the receiver when it recognizes a gesture.
nilis not a valid value.
A selector that identifies the method implemented by the target to handle the gesture recognized by the receiver. The action selector must conform to the signature described in the class overview.
NULLis not a valid value.
An initialized instance of a concrete
This method is the designated initializer. After creating the gesture recognizer, you may associate other target-action pairs with it by calling