iphone - How can I test if the scroll view is bouncing? -


How can I test if scrolling is jumping? Is there a notification or something when the bounce ends?

Yes ... check UIScrollViewDelegate spec, apply methods including the two methods given below, and your Set the representative of UIScrollView accordingly:

  // prevents users from dragging the view - (zero) scrollViewDidEndDragging: (UIScrollView *) scrollView willDecelerate: (BOOL) decomposed; / / Slows down control after user control - (zero) scrollViewDidEndDecelerating: (UIScrollView *) scrollView;  

You may be more interested in ScrollWind andDecilating. They also work in UITWV, where I originally got them (UITcrollView gets UITBL VIL).


Comments