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?
Asked
Active
Viewed 1,089 times
2

ma11hew28
- 121,420
- 116
- 450
- 651
-
Try the method described here: http://stackoverflow.com/a/987991/663476 – jonkroll Jan 27 '12 at 01:29
1 Answers
-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