Reputation: 40369
I've seen the setContentOffset:animated: method. Is that going to scroll to a specific position, or what does that "offset" mean?
Upvotes: 24
Views: 32445
Reputation: 121
You can control the animation using
[UIView animateWithDuration:1.2 animations:^{_scrollView.contentOffset = CGPointMake(X, Y);}];
Upvotes: 4
Reputation: 17170
Yes. From the Apple documentation:
setContentOffset:animated:
Sets the offset from the content view’s origin that corresponds to the receiver’s origin.
Upvotes: 41