これは正確な問題に対する答えではありませんが、問題を解決する別の方法です。
私は、自分が uilaertview を呼び出してそれを却下する人物であることを知って、自分で進行状況を制御しようとします。では、なぜ 2 つの hud を使用しないのでしょうか?
// Add when your fetch method is called
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
hud.labelText = @"Loading...";
//in your alertview method
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error"
message:@"Message"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
//dissmiss progress hud before alertview is shown
[MBProgressHUD hideHUDForView:self.view animated:YES];
[alert show];
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
NSString *title = [alertView buttonTitleAtIndex:buttonIndex];
if([title isEqualToString:@"OK"])
{
NSLog(@"OK button is clicked on alertview");
//show another hud
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
hud.labelText = @"Loading...";
}
}