public HIPImageCropperView(CGRect frame, CGSize cropSize, CropperViewPosition position, CropHoleType cropHoleType = CropHoleType.Square) : base(frame) { _maskPosition = position; _cropHoleType = cropHoleType; _cropSize = cropSize; this.BackgroundColor = UIColor.Black; this.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; this.ClipsToBounds = true; ScrollView = new UIScrollView(); ImageView = new UIImageView(); OverlayView = new UIView() { UserInteractionEnabled = false, BackgroundColor = UIColor.Black.ColorWithAlpha(0.6f), AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight }; LoadIndicator = new UIActivityIndicatorView(UIActivityIndicatorViewStyle.White) { HidesWhenStopped = true, AutoresizingMask = UIViewAutoresizing.FlexibleLeftMargin | UIViewAutoresizing.FlexibleRightMargin | UIViewAutoresizing.FlexibleBottomMargin | UIViewAutoresizing.FlexibleTopMargin }; }