This method should not be called on the main thread as it may lead to UI unresponsiveness.

小灰灰 2024-05-03 14:46 181阅读 0赞

This method should not be called on the main thread as it may lead to UI unresponsiveness.

在接优量汇的时候,这个方法写在哪里都报这个错误,可以这样修改下:

[GDTSDKConfig registerAppId:ULH_APPID];

改为:

// 优量汇 异步加载

dispatch_async(dispatch_get_global_queue(0, 0), ^{

[GDTSDKConfig registerAppId:ULH_APPID];

});

发表评论

表情:
评论列表 (有 0 条评论,181人围观)

还没有评论,来说两句吧...

相关阅读