This method should not be called on the main thread as it may lead to UI unresponsiveness.
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];
});
还没有评论,来说两句吧...