Instance Method

gestureRecognizerShouldBegin:

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

Declaration

- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer;

Parameters

gestureRecognizer

An instance of a subclass of the abstract base class UIGestureRecognizer. This gesture-recognizer object is about to begin processing touches to determine if its gesture is occurring.

Return Value

YES (the default) to tell the gesture recognizer to proceed with interpreting touches, NO to prevent it from attempting to recognize its gesture.

Discussion

This method is called when a gesture recognizer attempts to transition out of the UIGestureRecognizerStatePossible state. Returning NO causes the gesture recognizer to transition to the UIGestureRecognizerStateFailed state.

See Also

Regulating Gesture Recognition

- gestureRecognizer:shouldReceiveTouch:

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

- gestureRecognizer:shouldReceivePress:

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