In-app purchase question

Discussion in 'iPhone/iPad Programming' started by Danneman101, Jan 10, 2011.

  1. macrumors 6502

    Joined:
    Aug 14, 2008
    #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
    
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    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.
     

Share This Page