Instance Method

scrollViewWillBeginZooming:withView:

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

Declaration

- (void)scrollViewWillBeginZooming:(UIScrollView *)scrollView withView:(UIView *)view;

Parameters

scrollView

The scroll-view object displaying the content view.

view

The view object whose content is about to be zoomed.

Discussion

This method is called at the beginning of zoom gestures and in cases where a change in zoom level is to be animated. You can use this method to store state information or perform any additional actions prior to zooming the view’s content.

See Also

Managing Zooming

- viewForZoomingInScrollView:

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

- 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.