Search code examples
iosdelegatesios5uigesturerecognizeruiapplicationdelegate

implementing a delegate


Im trying to follow this article for having simultaneous pan and pinch gesture recognizers but im unsure when I would call this method:

  #pragma mark - UIGestureRecognizerDelegate

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer

Currently I have a pan and pinch gesture recognizer so i can use the methods he is explaining. I add the boolean method as well, but where exactly would I call it?

the article: [1]: http://www.mindtreatstudios.com/our-projects/ios-gesture-recognizer-tips-tricks/


Solution

  • You don't call it, the gesture recogniser will call that method to tell you something of interest has occurred.