Ok
So first step, your view controller must implement UISCrollViewDelegate,
and you must set your controller as a delegate for your UIScrollView.
Then, implement this delegate method in your controller:
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
static float stopx = 2000.0f;
if (scrollView.contentOffset.x >= stopx) {
CGPoint stop = scrollView.contentOffset;
stop.x = stopx;
[scrollView setContentOffset:stop animated:NO];
}
}
Anytime you get pass 2000 / stops value, the scrollview should be brought back