In-App Purchasing?

巧了我就是萌 提交于 2019-12-25 08:01:18

问题


In my project I want to include a store feature without having to setup a server where the user downloads it from as a document. I want to use a method where I include all the store bought features into my app already, but they won't be able to use them unless they pay for the specific feature. So basically, I'm saying that I want the user to trigger a BOOLEAN to YES once they pay to allow the button to be used, rather than downloading it from a URL or a server. My store features are different sounds in a soundboard. Thanks


回答1:


Save the boolean setting in NSUserDefaults.




回答2:


I highly recommend using MKStoreKit. It's isFeaturePurchased will return a BOOL telling you if the user has purchased something. It handles all the gritty StoreKit functionality and almost everything when dealing with in app purchases.



来源:https://stackoverflow.com/questions/10669393/in-app-purchasing

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