3

我正在测试我的 mac 应用程序的应用程序购买,我注意到选择器 productsRequest:didReceiveResponse: 和 paymentQueue:updatedTransactions: 在我请求产品或尝试购买。

我没有看到任何关于此的文档警告,因为这意味着不应该从这些方法中更新 UI。

有没有其他人遇到过这个?我是否应该在这些方法中调用 performSelectorOnMainThread: 来更新 UI?

4

1 回答 1

0

Ran into the same issue as it appears to behave just like an asynch call using NSURLConnection. I solved my particular issue by using the NSObject method call "performSelectorOnMainThread:withObject:waitUnitlDone:" Probably setting up NSNotification to be caught on the main thread of ViewController or WindowController would work as well.

于 2013-02-08T14:21:31.317 回答