Stop deceleration of UIScrollView

2019-03-23 09:07发布

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 stops or the user performs a certain action, whatever happens first.

Thanks!

1条回答
看我几分像从前
2楼-- · 2019-03-23 09:31

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.

查看更多
登录 后发表回答