Persistence Storage

Discussion in 'iPhone/iPad Programming' started by priyank.ranka, Dec 5, 2008.

  1. macrumors member

    #1
    Hi EveryOne,
    I want to store one integer value in some persistence storage..I dont want to use Sqlite3 for it.I want to use plist but i couldnt write data into plist.Please it will be of great help iif some one can provide me basic code of creating reading and writing data into plist.Thanks for ur help.
     
  2. Moderator

    robbieduncan

    Staff Member

    #2
    Why not just store this single integer in NSUserDefaults? Look it up in the documentation...
     
  3. macrumors member

    #3
    Actually i want it to be done by plist only so that i can use this only in further games
     
  4. Moderator

    robbieduncan

    Staff Member

    #4
    Well in that case you should read the appropriate documentation. In this case I'd suggest the File and Data Management section of iPhone Application Programming Guide which you should have read and understood all of anyway.
     
  5. macrumors regular

    #5
    i still don't see why you can't use NSUserDefaults. It seems to fit your bill.
     

Share This Page