IPhone UIView touchesMoved: withEvent: not called on UIView with gesture recognizers

I added UIViewthat relied on TouchesMoved: events to drag and drop. There, a long press, short press, rotation and fixation of gesture recognizers are already present in the same controller. I run into a problem when a view receives events touchesBegan:and touchesEnded:, but no touches move.

Is my problem with touchsMoved not caused by signs of recognition of gestures that cancel touch in the view? I also have a scroll view. Could this be the culprit?

If I cannot use touchtsMoved, which is the closest gesture to implement the touch and move functionality. Is it a sign of gesture or pan recognition?

Thank you for your help!

+5
source share
2 answers

Gestures by default cancel touch of the object with which they are associated when they are active. You can stop this behavior by setting the cancelsTouchesInView property to a value NO.

+13
source

, , , . (UIPanGestureRecognizer) .

, , gestureRecognizer: shouldRecognizeSimultaneousWithGestureRecognizer: UIGestureRecognizerDelegate.

+2

All Articles