ios webview 使用MBProgressHUD后界面无法

2017-03-14  本文已影响268人  我想养只猫

之前:

- (void)showTextHud:(NSString*)msg {

MBProgressHUD * hud = [MBProgressHUDshowHUDAddedTo:self.view animated:YES];

hud.mode = MBProgressHUDModeText;

hud.label.text = msg;

hud.margin = 10.0f;

hud.removeFromSuperViewOnHide = YES;

[hud hideAnimated:YESafterDelay:1.5];

}

hud消失后发现webview无法点击,而且有时显示位置不正确

修改:MBProgressHUD*hud = [MBProgressHUDshowHUDAddedTo:[UIApplicationsharedApplication].keyWindowanimated:YES];

上一篇 下一篇

猜你喜欢

热点阅读