Persistence Storage

Discussion in 'iOS Programming' started by priyank.ranka, Dec 5, 2008.

  1. macrumors member

    Joined:
    Jun 11, 2008
    #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 emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Why not just store this single integer in NSUserDefaults? Look it up in the documentation...
     
  3. thread starter macrumors member

    Joined:
    Jun 11, 2008
    #3
    Actually i want it to be done by plist only so that i can use this only in further games
     
  4. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #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

    Joined:
    Mar 24, 2008
    #5
    i still don't see why you can't use NSUserDefaults. It seems to fit your bill.
     

Share This Page