问题
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