我的代码:
打开对话框
- (void)viewDidLoad
{
//Start
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
hud.labelText = @"loading...";
}
我正在使用MBProgress
HUD
但我想要对话框点击关闭
如何关闭对话框以单击关闭?
答案 0 :(得分:1)
它有效! (虚空)touchesEnded事件必须使用
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
[MBProgressHUD hideHUDForView:self.view animated:YES];
}