UIScrollView blocks all touches while zooming or scrolling

谁说胖子不能爱 提交于 2019-12-24 01:18:45

问题


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.



来源:https://stackoverflow.com/questions/11061528/uiscrollview-blocks-all-touches-while-zooming-or-scrolling

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!