0

我的应用程序有一个 inApp 购买,它适用于我的装有 iOS 5.0 的 ipad。

现在,在使用 iOS 5.1.1 进行测试时,相同的构建在应用内购买“无法连接到 iTunes Store”时出现错误。在调试时,我成功获得了产品列表,但是当我尝试购买该产品时出现错误......

SKPayment *payment = [SKPayment paymentWithProductIdentifier:productIdentifier];

是否有人在购买 inApp 时遇到此类错误?任何建议都会有很大帮助。谢谢。

4

2 回答 2

1

该解决方案对我有用:-

转到设置--->常规--->重置--->重置所有设置,它工作正常。

于 2012-08-23T18:37:04.200 回答
0

You're using paymentWithProductIdentifier: which is deprecated in iOS 5.0, maybe that's the problem. Try using :paymentWithProduct: instead.

"paymentWithProductIdentifier: Returns a new payment with the specified product identifier. (Deprecated in iOS 5.0.)" http://developer.apple.com/library/ios/documentation/StoreKit/Reference/StoreKit_Collection/StoreKit_Collection.pdf

于 2012-08-07T11:02:14.787 回答