November 2013
Intermediate to advanced
576 pages
19h 3m
English
Now that the chapter has explained how the gesture recognizers receive and handle touches, it is clear that only one of the gesture recognizers is receiving and handling touches at a time. To get them both to handle touches simultaneously, there is a UIGestureRecognizerDelegate protocol that can be implemented to have a little more control over how touches are delivered to gesture recognizers. This protocol specifies three methods:
(BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer: Use this method to indicate whether the gesture recognizer should transition from UIGestureRecognizerStatePossible ...
Read now
Unlock full access