public static void HideHUD(this UIViewController vc) { if (currentHud != null) { currentHud.Hide(true); currentHud.RemoveFromSuperview(); currentHud = null; } }
/// <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; } }
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; }); }
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(); }