I\'d like to disable two-finger scrolling in my UIScrollView
.
I subclassed it and tweaked its built-in gesture recognizers with the following code:
PROBLEM:
When the UIPanGestureRecognizer
is underlying a UIScrollView
(which unfortunately does also effect UIPageViewController
) the maximumNumberOfTouches
is not behaving as expected - the minimumNumberOfTouches
however always limits the lower end correctly.
When monitoring these parameters they seem to do their job - it's just that UIScrollView
doesn't honor them and ignores their values!
REMEDY:
You can find the solution in my answer to:
UIScrollView scrolling only with one finger