I have some problems with MBProgressHUD. I am downloading some images and JSON and trying to show the status.
This is on my viewdidload
:
HUD = [[MBProgressHUD alloc] initWithView:self.view];
HUD.labelText = @"Lade Bilder runter...";
HUD.mode = MBProgressHUDModeAnnularDeterminate;
HUD.detailsLabelText = @"Schritt 1 von 2";
HUD.yOffset = -10;
[self.view addSubview:HUD];
[HUD show:YES];
[self downloadImages];
showWhileExecuting
is not working with NSOperationQueue
. I have no idea why. So, the method downloadImages
uses NSOperationQueue
in order to process the download with AFNetworking
. After the NSOperationQueue is finished I call finishedDownload
.
That method calls
[HUD hide:YES];
This is working. The HUD is hiding but the UITableView is being blocked for about 2seconds. After those 2 seconds the HUD flashes up and hides instantly. After that flash I can interact with the UITableView.
What's the problem here? I really appreciate help.
Thanks