Overridden to indicate that the receiver can prevent the specified gesture recognizer from recognizing its gesture.
- iOS 3.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
An instance of a subclass of
true to indicate that the receiver can block
prevented 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.