在一个堆栈中,我显示MBProgressHUD
,如果通过使用其他堆栈时,某些计算称为我想要MBProgressHUD
从视图中删除,但它没有从hud中删除..check我是什么错误做..MBProgressHUD视图不隐藏
称为LoginViewController.m
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
}
-(void)myTask {
// Do something usefull in here instead of sleeping ...
[MBProgressHUD hideHUDForView:self.view animated:YES];
[self.hud hide:YES];
self.hud=nil;
[self.hud removeFromSuperview];
//[self.hud showWhileExecuting:@selector(myTask1) onTarget:self withObject:nil animated:YES];
}
现在ViewController
得到电话,但鉴于将是相同的一个和
一些计算之后,我想在ViewController
我想通过调用方法在LoginViewController
..check代码以删除从视图中HUD
- (void)didReceiveResponseFromServer:(NSString *)responseData
{
login=[[LoginViewController alloc]init];
[self.login myTask];
}
可以请elabarote在哪里,你确切地想隐藏你的HUD层? – Dhruvik 2013-03-20 11:42:31