UIKit.UIImageView Class
A UIKit.UIView that can render a single image or animate a series of images.

See Also: UIImageView Members


[Foundation.Register("UIImageView", true)]
public class UIImageView : UIView


New UIImageView objects ignore user-input (eg. touches) by default. To handle events in a subclass, set UIView.UserInteractionEnabled = true after the object has been created.

The image is scaled, sized to fit or positioned in the UIImageView according to the UIView.ContentMode property. If either UIImage.LeftCapWidth or UIImage.TopCapHeight are set, the image is stretched according to those values instead.

This view is aware of stretchable images created with UIImage.CreateResizableImage(UIEdgeInsets)

The class provides controls to set the duration and frequency when animating multiple images. It also allows you to stop and start the animation. All images associated with a UIImageView object should use the same scale.

Related content


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