Beispiel #1
0
 public static void HideHUD(this UIViewController vc)
 {
     if (currentHud != null)
     {
         currentHud.Hide(true);
         currentHud.RemoveFromSuperview();
         currentHud = null;
     }
 }
Beispiel #2
0
        /// <summary>
        /// This function hide progress view over window.
        /// </summary>
        public static void hideProgressHud()
        {
            if (hud != null)
            {
                hud.Hide(true);
                hud.RemoveFromSuperview();
                hud.Delegate = null;

                hud = null;
            }
        }
Beispiel #3
0
        void ShowUsingHandlers()
        {
            // The hud will dispable all input on the view (use the higest view possible in the view hierarchy)
            hud = new MTMBProgressHUD(navController.View);
            navController.View.AddSubview(hud);

            // Add information to your HUD
            hud.LabelText = "With a handler";

            // We show the hud while executing MyTask, and then we clean up
            hud.Show(true, () => {
                MyTask();
            }, () => {
                hud.RemoveFromSuperview();
                hud = null;
            });
        }
Beispiel #4
0
 void HandleDidHide(object sender, EventArgs e)
 {
     hud.RemoveFromSuperview();
     hud = null;
 }
 public void HideLoading()
 {
     progressDialog?.Hide(true);
     progressDialog?.RemoveFromSuperview();
     progressDialog = null;
 }
 public void Hide()
 {
     _hud.Hide(true);
     _hud.RemoveFromSuperview();
 }