Instance Method

setContentOffset:animated:

Sets the offset from the content view’s origin that corresponds to the receiver’s origin.

Declaration

- (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated;

Parameters

contentOffset

A point (expressed in points) that is offset from the content view’s origin.

animated

YES to animate the transition at a constant velocity to the new offset, NO to make the transition immediate.

See Also

Managing the Content Size and Offset

contentSize

The size of the content view.

contentOffset

The point at which the origin of the content view is offset from the origin of the scroll view.