Created
May 27, 2011 07:16
-
-
Save mafis/994791 to your computer and use it in GitHub Desktop.
Loading LoadingAlertView
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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