Hi I am creating an inapp purchase iphone application. My application has build in model. It has a table view which has 6 items. In free app 3 items are available and I want to lock 3 items. People can unlock all three items by just making a single transaction of $0.99.
I want to create a plist file in my application which will contain a flag. If flag=0 then lock few features and if flag=1 then unlock everything. My plist will contain only one "flag" which may be 0 or 1.
I don't know how to create a plist file. Where should i keep a plist file so that customers couldn't access it? Should I keep it in resource folder?
After SKTransactionStatePurchased, I want to change the flag in .plist file. Can you please give me the code which will change flag value from 0 to 1 in flag.plist file?
Thanks.
I believe you should look for another approach to solve your issue, for a couple of reasons:
My apologies for not directly answering your question, but storing that sort of things in the documents the app uses is really a bad idea. I highly recommend you to look for alternative methods to do this (like using your own server).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With