使用MBProgressHUD 卡顿 报Main Thread Checker: UI API called on a background thread: -[UIApplication ap...

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 Checker: UI API called on a background thread: -[UIApplication ap...)