This is how I add MBProgressHUD
to my view and block all input until it is deleted:
MBProgressHUD HUD = [[MBProgressHUD alloc] initWithView:self.view]; HUD.opacity = 0.7f; [self.view addSubview:HUD]; HUD.delegate = self; [HUD show:YES];
Note. self
is the view controller that the HUD adds to
source share