iOS13内购隐藏大坑 - (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response

苹果iOS13 内购隐藏大坑:

 - (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response

iOS12之前是在主线程回调,

在iOS13改成了在一个异步线程回调,如果在iOS13下苹果内购这个回调直接执行一些UI操作,则必然会提示

Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread.

posted @ 2020-01-17 15:26  jxst441192  阅读(2542)  评论(0编辑  收藏  举报