Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop deceleration of UIScrollView

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!

like image 375
hpique Avatar asked Jan 10 '10 17:01

hpique


1 Answers

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.

like image 93
RickiG Avatar answered Sep 24 '22 02:09

RickiG