If there’s a need to reset scrollview’s contentSize property together with zoomScale property, resetting zoomScale should be done first, e.g.:

[[self scrollView] setZoomScale:1];
[[self scrollView] setContentSize: CGSizeZero];

Otherwise contentSize will not be set correctly and undesired ability to scroll content will be possible.

Advertisements