在应用程序购买不工作 [英] In app purchase not work

查看:112
本文介绍了在应用程序购买不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用本教程 http://www.raywenderlich.com/ 2797 /应用内购买介绍,用于在我的应用中创建购买。

I use this tutorial http://www.raywenderlich.com/2797/introduction-to-in-app-purchases for create purchases in my app.

此代码有效或无效。我知道这听起来很有趣,但这是我的问题。

From time to time this code is working or not working. I know it sounds funny, but this is my problem.

例如:首先启动应用程序(所有项目下载并在表格中显示,我可以购买任何此类),但在下一次(例如第二次开始)我在这一行收到错误:

For example: First start app (all items download and shows in table and i have available to purchase any of this), but at the next time (for example second start) I get an error on this line:

SKProduct *product = [[InAppRageIAPHelper sharedHelper].products objectAtIndex:0]; 

错误是


由于未捕获的异常'NSRangeException'索引0超出空数组的边界而终止应用程序

Terminating app due to uncaught exception 'NSRangeException' index 0 beyond bounds for empty array


推荐答案

在我的设备进行硬重置后,我解决了这个问题。

This problem I solved after make hard reset for my device.

这篇关于在应用程序购买不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆