Stop deceleration of UIScrollView

前端 未结 1 1967
臣服心动
臣服心动 2021-02-12 19:43

What\'s the best way to immediately stop the deceleration of an UIScrollView in iPhone 3.0?

I would like to keep the deceleration of the UIScrollView until it naturally

相关标签:
1条回答
  • 2021-02-12 20:23

    Untested suggestion coming up:)

    When the button tap event is caught, you read what the [scrollView contentOffset].x is, and set the offset to this value with animation OFF.

    0 讨论(0)
提交回复
热议问题