Removes a target and an action from a gesture-recognizer object.
- iOS 3.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
An object that currently is a recipient of action messages sent by the receiver when the represented gesture occurs. Specify
nilif you want to remove all targets from the receiver.
A selector identifying a method of a target to be invoked by the action message. Specify
NULLif you want to remove all actions from the receiver.
Calling this method removes the specified target-action pair. Passing
target matches all targets and passing
action matches all actions.