美文网首页
使用MBProgressHUD 卡顿 报Main Thread

使用MBProgressHUD 卡顿 报Main Thread

作者: 米开朗骑騾 | 来源:发表于2019-10-10 10:42 被阅读0次

Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]

[reports] Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]

PID: 7847, TID: 1377868, Thread name: com.apple.CoreMotion.MotionThread, Queue name: com.apple.root.default-qos.overcommit, QoS: 0

使用 MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:view animated:YES];会报以上警告

原因:苹果系统版本问题 (12.1.4版本)
https://github.com/jdg/MBProgressHUD/issues/552

解决:修改 MBProgressHUD引用
pod 'MBProgressHUD', :git => 'https://github.com/Casa/MBProgressHUD.git'

相关文章

网友评论

      本文标题:使用MBProgressHUD 卡顿 报Main Thread

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