Saving App on exit?

Discussion in 'iOS Programming' started by iLoveDeveloping, Jan 31, 2010.

  1. iLoveDeveloping macrumors regular

    Joined:
    Sep 24, 2009
    Location:
    Ireland
    #1
    Hey,

    I just had a few questions and i was wondering if you guys can point me in the right direction?

    Firstly, im making a new App, but i would like the user to input information, say they right a note or something, in a view, I wanted to know what do i use to save that information when the user exits the App and have it still there when it is next opened or until the user deletes it??

    and secondly, when the keypad pops up on screen, how can i get it to leave? I have it popping up in a View, but when i am done writing the "Done" button just never shows up?

    Any ideas?

    Thanks..
     
  2. ethical macrumors 68000

    Joined:
    Dec 22, 2007
    #2
    check out this video:
    http://www.youtube.com/watch?v=fdl7SD_87dg

    It explains how to save a file (eg. .txt file) to the documentsDirectory that apps have. This is the permanent storage space as appose to the tmp folder.

    There's a chapter in the book Beginning iPhone 3 Development that I've got that is all about data persistence also.

    Basically just look into the documentsDirectory and data persistence.

    edit:

    check out this document:
    http://developer.apple.com/iphone/l...erence.html#//apple_ref/doc/uid/20000305-2894
     

Share This Page