I\'m trying to recognize left/right swipe gesture in a UIScrollView. I\'ve tried to create UISwipeGestureRecognizers and associate them with the sc
UIScrollView *scrollView = ...
UISwipeGestureRecognizer *mySwipe = ...
The correct solution to fix this issue is to add one line of code:
[scrollView.panGestureRecognizer requireGestureRecognizerToFail:mySwipe]
Swift version:
scrollView.panGestureRecognizer.requireGestureRecognizerToFail(mySwipe)
Swift4 version:
scrollView.panGestureRecognizer.require(toFail: mySwipe!);