Skip to content

Instantly share code, notes, and snippets.

@mafis
Created May 27, 2011 07:16
Show Gist options
  • Select an option

  • Save mafis/994791 to your computer and use it in GitHub Desktop.

Select an option

Save mafis/994791 to your computer and use it in GitHub Desktop.
Loading LoadingAlertView
public class LoadingAlertView : UIAlertView
{
public LoadingAlertView (string title) : base(title,String.Empty,null,null,null)
{
}
public override void LayoutSubviews ()
{
base.LayoutSubviews ();
UIActivityIndicatorView loadingIndicator = new UIActivityIndicatorView(UIActivityIndicatorViewStyle.WhiteLarge);
indicator.Center = new System.Drawing.PointF(this.Bounds.Size.Width / 2,
this.Bounds.Size.Height - 50);
indicator.StartAnimating();
this.AddSubview(indicator);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment