UIScrollView blocks all touches while zooming or s

2019-07-19 12:24发布

问题:

I can't press any other buttons in the same window while UIScrollView is zooming with a pinch gesture or scrolling. Is there any way to enable this behavior? It's exactly like the scroll view has exclusive touch (though I tried setting it explicitly to NO). I have a scroll view inside a view, and I would like it to scroll only while the user holds a scroll button. Otherwise, panning with one finger enables freehand drawing.

回答1:

As noted in the comments, the answer was that I foolishly had a subview that had exclusiveTouch enabled among the subviews of the scroll view.