开发者

Stop deceleration of UIScrollView

开发者 https://www.devze.com 2022-12-15 19:59 出处:网络
What\'s the best w开发者_高级运维ay to immediately stop the deceleration of an UIScrollView in iPhone 3.0?

What's the best w开发者_高级运维ay 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!


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

精彩评论

暂无评论...
验证码 换一张
取 消