将滚动动画
UIView.animate(withDuration: 0.1) {
scrollView.contentOffset.x += moveX
}
改成
UIView.animate(withDuration: 0.1, delay: 0, options: [.allowUserInteraction], animations: {
scrollView.contentOffset.x += moveX
})
将滚动动画
UIView.animate(withDuration: 0.1) {
scrollView.contentOffset.x += moveX
}
改成
UIView.animate(withDuration: 0.1, delay: 0, options: [.allowUserInteraction], animations: {
scrollView.contentOffset.x += moveX
})
本文标题:iOS UIScrollView自动滚动时 触摸不起作用(已解决
本文链接:https://www.haomeiwen.com/subject/iichvdtx.html
网友评论