
但是,如何检查是否启用了应用程序内购买?
解决方法 这对你有帮助:if ([SKPaymentQueue canMakePayments]) { // start adding the payment to the payment queue} else { // handle the restriction} 它是关于canMakePayments类方法的SKPaymentQueue类引用:
YESif the user is allowed to authorize payment.NOif they do not have permission.
以及对同一方法的进一步说明:
总结An iPhone can be restricted from accessing the Apple App Store. For example,parents can restrict their children’s ability to purchase additional content. Your application should confirm that the user is allowed to authorize payments before adding a payment to the queue. Your application may also want to alter its behavior or appearance when the user is not allowed to authorize payments.
以上是内存溢出为你收集整理的iOS:如何检查是否启用了应用程序内购买?全部内容,希望文章能够帮你解决iOS:如何检查是否启用了应用程序内购买?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)