美文网首页
IOS JGProgressHUD闪退问题

IOS JGProgressHUD闪退问题

作者: 明似水 | 来源:发表于2020-02-24 14:03 被阅读0次

    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.

    相关文章

      网友评论

          本文标题:IOS JGProgressHUD闪退问题

          本文链接:https://www.haomeiwen.com/subject/rdvmqhtx.html