private void UpdateIndicators() { if (Indicator != null) { Indicator.RemoveFromSuperview(); } this.Indicator = null; if (Mode == MBProgressHUDMode.Determinate) { Indicator = new MBRoundProgressView(); } else { Indicator = new UIActivityIndicatorView(UIActivityIndicatorViewStyle.WhiteLarge); ((UIActivityIndicatorView)Indicator).StartAnimating(); } this.AddSubview(Indicator); }