InApp不使用iOs 5.1.1

时间:2012-08-04 05:34:13

标签: ios in-app-purchase itunes-store

我的应用程序有一个inApp购买,可以正常使用我的ipad iOS 5.0。

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

SKPayment *payment = [SKPayment paymentWithProductIdentifier:productIdentifier];

是否有人因购买inApp而面临此类错误?任何建议都会有很大帮助。 感谢。

2 个答案:

答案 0 :(得分:1)

此解决方案适合我: -

转到设置--->常规--->重置--->重置所有设置,它运行正常。

答案 1 :(得分:0)

您正在使用paymentWithProductIdentifier:在iOS 5.0中已弃用,可能就是问题所在。 尝试使用:paymentWithProduct:而不是。

“paymentWithProductIdentifier: 返回具有指定产品标识符的新付款。 (在iOS 5.0中已弃用。)“http://developer.apple.com/library/ios/documentation/StoreKit/Reference/StoreKit_Collection/StoreKit_Collection.pdf