This question already has an answer here:
I have a UIScrollView which has subviews that create a content with a width of about 7000. Now I want the UIScrollView to not scroll any further then 2000.
I tried:
[scrollView setContentSize:CGSizeMake(768.0, 2000.0)];
[scrollView setClipsToBounds:YES];
But I can still scroll to the end, how do I prevent this?
As others have said, implement the uiscrollviewdelegate
implement these methods:
and hopefully that will fix the jumping issue you were having
note, put in these methods similar code to the other posts like
At first performance will possibly be compromised, if this is true, begin taking out certain delegate methods until you get the desired behavior