NSUserDefaults Question

Discussion in 'iOS Programming' started by AndyCodez, Dec 6, 2009.

  1. AndyCodez macrumors regular

    Aug 6, 2009
    Currently I use NSUserDefaults for in app purchase. Basically stores a bit flag to see whether or not the user has purchased the additional content. This application has not been released yet and I was wondering if the NSUserDefaults are stored when the app is backed up by the user in itunes.

    Lets hope this is backed up when the user makes a back up of their applications.

    Thanks for the help!
  2. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    I believe it is. At least, I used the same solution as you.
  3. North Bronson macrumors 6502

    Oct 31, 2007
    San José
    If you look at "Files and Networking" in the "iPhone Application Programming Guide" Apple tells you which directories are backed up with each sync. The User Defaults should be saved.
  4. AndyCodez thread starter macrumors regular

    Aug 6, 2009
    Thanks guys! I thought so, makes life alot easier.
  5. smiwin macrumors newbie

    Sep 25, 2008
    Could you show your code you used to accomplish this, it would be of great help to combat many confusing, unsuccessful, or incomplete references for using NSUserDefaults? Thanks.


Share This Page