UIScrollView(include subview class:TabblewView/CollectionView) Long Press Cell`s subview, such as UIButton, and then scroll again to cancel Button`s Touch,then continue Scroll UIScrollView`s content
如果你的Cell中带有Button等可响应触摸事件的控件,然后你此时长按该控件,正常情况下,此事件被此等控件拦截了,然后你滑动手指来操作,此时UIScrollView是不会滚动的。但是你可能需要此时UIScrollView能继续滚动,那么就可以这么设置,一句话搞定:
Swift/OC -> scrollView.panGestureRecognizer.delaysTouchesBegin = true/YES;