iPhone + In App purchase + change alert message

拟墨画扇 提交于 2019-12-22 06:48:24

问题


I have implemented In App Purchase in one of the existing application, it's working fine. But the problem is that whenever I tap on any of the locked feature (where I have implemented In App code), it show me the alert message with title like

"Confirm your In App Purchase"

and message saying

"Do you want to buy one xxx Features for $xxx ?" and

"Cancel" / "Buy" UIButtons.

I am not setting any of these messages in code, so I don't know where is this text coming from and how to change this message with something like

"This Feature is locked, do you want to buy this feature and unlock it ?"


回答1:


The messages are coming from the App Store, so that you can not change the text. You must go the other direction. When the user taps a button or a table vie cell related to a locked feature, then you show youe message asking the user to buy it. If he/she confirms, then the App Store message appears.



来源:https://stackoverflow.com/questions/2175116/iphone-in-app-purchase-change-alert-message

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!