UIScrollview delaysContentTouches issue

前端 未结 6 2110
無奈伤痛
無奈伤痛 2020-12-13 10:33

I have UIScrollView loaded with UIButtons and on UIButton action I have highlighted UIImage of each UIButton

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-13 11:11

    I found that in iOS 8, the UIScrollView's underlying UIPanGestureRecognizer is not respecting the UIScrollView's delaysContentTouches property. I consider this an iOS 8 bug. Here's my workaround:

    theScrollView.panGestureRecognizer.delaysTouchesBegan = theScrollView.delaysContentTouches
    

提交回复
热议问题