I have a view with two swipe gesture recognizers. One left and one right.
On top of this view, i have another view with two other swipe gesture recognizers.
My problem is that any swipe i do on the second view gets sent to the parent view as well.
How do i prevent this?
And, how do i prevent a touch event triggered in child view B from getting sent to parent view A?
thanks!
ps. sorry if this question was asked before.. i did try a bunch of stuff before asking, but nothing worked ..
This can be easily accomplished with the
UIGestureRecognizer‘scancelsTouchesInViewproperty. Set this toYESon the subview’s recognizers, and that should prevent the gestures from propagating to the parent view.