+ Reply
Results 1 to 2 of 2

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: How to keep the state of the application?

is a discussion within the

iPhone / iPod Touch SDK | Development Discussion

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
I'm trying to design a program that can keep the state of the program when the user stop using (or return to the main page). What is the best directory
...
  1. #1
    What's Jailbreak?
    Join Date
    Jan 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to keep the state of the application?
    I'm trying to design a program that can keep the state of the program when the user stop using (or return to the main page). What is the best directory to save the state of the program? I only need to save a number and a picture.

    Thanks!

  2. #2
    Developer NetMage's Avatar
    Join Date
    Aug 2007
    Location
    Virginia
    Posts
    1,296
    Thanks
    72
    Thanked 210 Times in 168 Posts

    1. Wrong forum (I assume you are talks g native app and not Windows or Mac).

    2. Look up NSUserDefaults standardUserDefaults to automatically save and load state.
    Starlight Computer Wizardry
    Pocket-sized Development
    Follow me on twitter: @NetMage

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts