0

I am using PanGestureRecognizer to my self.view and UISwipeGestureRecognizer in my UITableView. I have added UITableView as subview in self.view. Now UISwipeGesture is not working. But if i disable PanGesture in self.view, SwipeGesture is working.

Can someone solve this?

Vineet Singh
  • 4,009
  • 1
  • 28
  • 39
  • have you enabled userInteraction? – Arthur Mar 05 '13 at 06:31
  • Got the answer through these links. http://stackoverflow.com/questions/5111828/how-to-have-a-uiswipegesturerecognizer-and-uipangesturerecognizer-work-on-the-sa http://stackoverflow.com/questions/7801721/pinch-rotate-uigesturerecognizerdelegate-not-called – Manoj Thomas Mar 05 '13 at 06:42
  • Yes. I have enabled. Just failed to call "shouldrecognizesimultaneouslywithgesturerecognizer" this delegate method to run multiple gestureRecognizers – Manoj Thomas Mar 05 '13 at 06:45

1 Answers1

1

Go through this stackoverflow question's answer to get an idea about swipe and pan gestures...

What is the difference between Pan and Swipe in iOS?

hope this will helps you...

Community
  • 1
  • 1
Bhanu Prakash
  • 1,493
  • 8
  • 20