Instance Method

gestureRecognizer:shouldReceivePress:

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

Declaration

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceivePress:(UIPress *)press;

Parameters

gestureRecognizer

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

press

A UIPress object from the current press sequence.

Return Value

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

Discussion

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

See Also

Regulating Gesture Recognition

- gestureRecognizerShouldBegin:

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

- gestureRecognizer:shouldReceiveTouch:

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