Ejemplo n.º 1
0
        public void ShowProgressDialog(string message = "")
        {
            UIViewController rootVC = ((AppDelegate)UIApplication.SharedApplication.Delegate).Presenter.MasterNavigationController;

            UIApplication.SharedApplication.InvokeOnMainThread(() =>
            {
                MBProgressHUD hud = MBProgressHUD.HUDForView(rootVC.View);
                if (hud == null)
                {
                    hud = MBProgressHUD.ShowHUDAddedTo(rootVC.View, true);
                }
                hud.UserInteractionEnabled = true;
                hud.DetailsLabel.Text      = message;
            });
        }
 public static MBProgressHUD HUDForView(UIView view)
 {
     return(MBProgressHUD.HUDForView(view));
 }