- scrollView
- The UIKit.UIScrollView on whose behalf this method is being called.
The UIKit.UIView that should be zoomed when the scrollView is zooming.
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; };