7 XXX!-[JGProgressHUD cleanUpAfterDismissal] [JGProgressHUD.m : 474]
8 XXX!-[UIView(HUD) dissmissWindowHud] [UIView+HUD.m : 101]
9 XXX!__46-[xxxx updateImageType:andImage:]_block_invoke_2 [xxxx : 281]
10 XXX!__62+[HBUploadImageManage uploadImages:isAsync:progress:complete:]_block_invoke [HBUploadImageManage.m : 93]
-(void)dissmissWindowHud
{
UIWindow *window = [UIApplication sharedApplication].keyWindow;
JGProgressHUD *hud = [window viewWithTag:BCHudTag];
if (hud) {
[hud dismissAnimated:NO];
// [hud removeFromSuperview];
}
}
解决方法,这是异步问题,应该在主线程内执行相关操作
END.
网友评论