Instance Method

gestureRecognizer:shouldReceiveTouch:

Asks the delegate if a gesture recognizer should receive an object representing a touch.

Declaration

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch;

Parameters

gestureRecognizer

An instance of a subclass of the abstract base class UIGestureRecognizer.

touch

A UITouch object from the current multi-touch sequence.

Return Value

YES (the default) to allow the gesture recognizer to examine the touch object, NO to prevent the gesture recognizer from seeing this touch object.

Discussion

UIKit calls this method before calling the touchesBegan:withEvent: method of the gesture recognizer.

See Also

Regulating Gesture Recognition

- gestureRecognizerShouldBegin:

Asks the delegate if a gesture recognizer should begin interpreting touches.

- gestureRecognizer:shouldReceivePress:

Asks the delegate if a gesture recognizer should receive an object representing a press.

- gestureRecognizer:shouldReceiveEvent:

Asks the delegate if a gesture recognizer should receive an object representing a touch or press event.