PDA

View Full Version : How to distinct Gesture?




mikezang
Jan 21, 2011, 05:11 AM
I use Pan Gesture to move my view, then I have a Custom Gesture for single finger rotation.

I can handle my custom gesture if I only add it, if I add these two gestures, I can only handle Pan gesture, so I have to avoid to use Pan gesture, but I want to use it, what can I do?



dejo
Jan 21, 2011, 09:52 AM
Why not do the rotation as two-finger? That's something much more natural for iOS users.

mikezang
Jan 24, 2011, 05:16 AM
Why not do the rotation as two-finger? That's something much more natural for iOS users.
I want to use single finger rotation for my app.
By the way, in general. do you know how to handle multiple gestures?

dejo
Jan 24, 2011, 09:28 AM
I want to use single finger rotation for my app.
Sure. But maybe explain why you want to use it. How does it make sense within the context of your app?

By the way, in general. do you know how to handle multiple gestures?
In general, I do, either through the creative use of touchesBegan/Moved/Ended or through UIGestureRecognizer.