UIScrollView - Figuring out where the scroll will stop
Posted
by spin-docta
on Stack Overflow
See other posts from Stack Overflow
or by spin-docta
Published on 2010-02-07T17:35:50Z
Indexed on
2010/03/28
17:03 UTC
Read the original article
Hit count: 309
I'm trying to figure out how to calculate where the scrollview will stop when a user does a swipe gesture and the scrollview goes into deceleration. I'm trying to use the delegate functions, but I can't accurately figure it out. Please help!
- (void) scrollViewDidScroll:(UIScrollView *)scrollView;
- (void) scrollViewWillBeginDecelerating:(UIScrollView *)scrollView;
- (void) scrollViewDidEndDecelerating:(UIScrollView *)scrollView;
© Stack Overflow or respective owner