UIKit.UIScrollViewGetZoomView Delegate
A delegate signature used by UIKit.UIScrollView's UIScrollView.ViewForZoomingInScrollView that specifies which view to render during zoom.

Syntax

public delegate UIView UIScrollViewGetZoomView (UIScrollView scrollView)

See Also

UIScrollView
UIScrollView.ViewForZoomingInScrollView

Parameters

scrollView
The UIKit.UIScrollView on whose behalf this method is being called.

Returns

The UIKit.UIView that should be zoomed when the scrollView is zooming.

Remarks

The UIScrollView.ViewForZoomingInScrollView in UIKit.UIScrollView needs to be assigned for zooming to work. For instance, in this code taken from the "Scroll View" section of the "iOS Standard Controls" example, a UIKit.UIImageView is created and added as a subview of the UIKit.UIScrollView and then used as the return value from the UIScrollView.ViewForZoomingInScrollView delegate:

C# Example

// create our image view
imageView = new UIImageView (UIImage.FromFile ("Images/Icons/512_icon.png"));
scrollView.ContentSize = imageView.Image.Size;
scrollView.MaximumZoomScale = 3f;
scrollView.MinimumZoomScale = .1f;
scrollView.AddSubview (imageView);
          
scrollView.ViewForZoomingInScrollView += (UIScrollView sv) => {
	return imageView; 
};          
        

Related content

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0