0

I setup both UISwipeGestureRecognizer & UIPanGestureRecognizer to a same view. That view has a table view. I want to execute UISwipeGestureRecognizer when the user swipe a table cell towards left direction & want to execute UIPanGestureRecognizer when the user touch & drag the view towards right direction.

I want to use..

  • UISwipeGestureRecognizer for showing quick links on cell. (Refer this link)

  • UIPanGestureRecognizer for dragging the entire view. So that the user can see the below view. (Refer this link)

I learned that shouldRecognizeSimultaneouslyWithGestureRecognizer: method of UIGestureRecognizer can allow/protect multiple gestures in the same view. (Am I right?)

But, I really don't know how to find the direction of touch and block the gestures accordingly.

I hope, my question is different from this.

I'm just confused!!

Thanks in advance

Community
  • 1
  • 1
Confused
  • 3,846
  • 7
  • 45
  • 72
  • Click on below link,I think it will help u some where [http://stackoverflow.com/questions/5111828/how-to-have-a-uiswipegesturerecognizer-and-uipangesturerecognizer-work-on-the-sa][1] [1]: http://stackoverflow.com/questions/5111828/how-to-have-a-uiswipegesturerecognizer-and-uipangesturerecognizer-work-on-the-sa – Rohit Dhawan May 16 '12 at 10:58
  • Hey.. Thanks for your comment. I pasted your link in my question itself. Actually my problem is to find the direction of the gesture and to disable/enable corresponding gestures. – Confused May 16 '12 at 11:22

0 Answers0