Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Danneman101

macrumors 6502
Original poster
Aug 14, 2008
361
1
I've found a good tutorial on how to set up in-app purchase.

But how do you in code check to see if a certain product has been bought in the in-app purchase-store? I mean, what is the syntax that corresponds to the pseudocode below:

Code:
if (product1_isBought == true)
   enable product1-stuff
else
   disable product1-stuff
 
When a product is purchased, what I do is set a value in NSUserDefaults to flag this and then simply check the value out of NSUserDefaults when needed.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.