MBProgressHUD blocks user interaction with a tableview MBProgressHUD blocks user interaction with a tableview xcode xcode

MBProgressHUD blocks user interaction with a tableview


I believe for me that is the point of MBProgressHUD , it gives you the opportunity show a HUD while your tasks are completed, once your tasks are completed you dismiss it so user can interact with completed data.

However In some cases loading data takes so long so you might want to let the user decide to continue , choose another option or just simply go back

in your code this HUD.userInteractionEnabled = NO; should work but problem might be that showHUDAddedTo:self.view you do not use the highest view possible in the view hierarchy.

Try to use this:

- (IBAction)showSimple:(id)sender {    // The hud will dispable all input on the view (use the higest view possible in the view hierarchy)    HUD = [[MBProgressHUD alloc] initWithView:self.navigationController.view];    [self.navigationController.view addSubview:HUD];    HUD.userInteractionEnabled = NO;    // Regiser for HUD callbacks so we can remove it from the window at the right time    HUD.delegate = self;    // Show the HUD while the provided method executes in a new thread    [HUD showWhileExecuting:@selector(loadEtkinliklerTitlesAndImages) onTarget:self withObject:nil animated:YES];}