Simultaneous gesture recognizers in Iphone SDK
Posted
by minaevs
on Stack Overflow
See other posts from Stack Overflow
or by minaevs
Published on 2010-04-13T08:11:27Z
Indexed on
2010/04/13
8:12 UTC
Read the original article
Hit count: 492
objective-c
|iphone
I need to catch two different swipping gestures using UISwipeGestureRecognizer(for example, UISwipeGestureRecognizerDirectionRight and UISwipeGestureRecognizerDirectionLeft). When I add two different recognisers with addGestureRecognizer method, only last added recognizer works. I've read that I need to implement gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer: method of UIGestureRecognizerDelegate protocol, but nothing works.
Can anyone help with simple example of catching two or more same gestures? Thanks!
© Stack Overflow or respective owner