这不是您确切问题的答案,而是解决您问题的另一种方法,
我会尝试自己控制进度,因为我知道我是调用 uilaertview 并驳斥它的人。那么为什么不使用两个 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...";
}
}