2

If I set the contentOffset (without animation) of a UIScrollView while it's scrolling, the scroll view jumps to the correct offset, but then continues scrolling. How do I prevent it from continuing scrolling?

ma11hew28
  • 121,420
  • 116
  • 450
  • 651

1 Answers1

-1

you can try to reset the scrolling by calling another setContentOffset with animated:YES

[scrollView setContentOffset:targetPoint animated:FALSE];
[scrollView setContentOffset:targetPoint animated:TRUE];
Andrei Stanescu
  • 6,353
  • 4
  • 35
  • 64