Instance Method

viewForZoomingInScrollView:

Asks the delegate for the view to scale when zooming is about to occur in the scroll view.

Declaration

- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView;

Parameters

scrollView

The scroll-view object displaying the content view.

Return Value

A UIView object that will be scaled as a result of the zooming gesture. Return nil if you don’t want zooming to occur.

See Also

Managing Zooming

- scrollViewWillBeginZooming:withView:

Tells the delegate that zooming of the content in the scroll view is about to commence.

- scrollViewDidEndZooming:withView:atScale:

Tells the delegate when zooming of the content in the scroll view completed.

- scrollViewDidZoom:

Tells the delegate that the scroll view’s zoom factor changed.