UIScrollView blocks all touches while zooming or s

2019-07-19 12:14发布

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条回答
疯言疯语
2楼-- · 2019-07-19 12:26

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.

查看更多
登录 后发表回答