Overridden to indicate that the specified gesture recognizer can prevent the receiver from recognizing a gesture.
- iOS 3.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
An instance of a subclass of
true to indicate that
preventing can block the receiver from recognizing its gesture, otherwise
Overriding these methods enables the same behavior as implementing the
gesture. However, by overriding them, subclasses can define class-wide prevention rules. For example, a
UITap object never prevents another
UITap object with a higher tap count.