Swift 闪退WebThread (39): Exception: "MBProgressHUD needs to be accessed on the main thread."

image.png
image.png

你能想象弹框闪退了?原谅我知道的少哈~~~

代码修改如下:

DispatchQueue.main.async {
   HUDManager.showAutoDismissFailedMessage("请选择优惠券")
}

参考链接:

https://blog.csdn.net/yishengzhiai005/article/details/78109450?utm_source=blogxgwz8

https://stackoverflow.com/questions/52710110/mbprogresshud-needs-to-be-accessed-on-the-main-thread

你可能感兴趣的:(Swift 闪退WebThread (39): Exception: "MBProgressHUD needs to be accessed on the main thread.")