0

I have an application where the user can log in but i don't want the user to enter his credentials every time he wants to use the application. 1 time would be sufficient but how(and whats the best way) to save 2 strings that i can revive by starting the application.

Andrew Grant
  • 58,260
  • 22
  • 130
  • 143
Andy Jacobs
  • 15,187
  • 13
  • 60
  • 91
  • See this thread as well: [http://stackoverflow.com/questions/523627/storing-passwords-in-iphone-applications/524144#524144](http://stackoverflow.com/questions/523627/storing-passwords-in-iphone-applications/524144#524144) – August Feb 12 '09 at 21:10

1 Answers1

12

The iPhone has a keychain API just like OS X. Or you could just store them using NSUserDefaults which would be easier but less secure.

Stephen Darlington
  • 51,577
  • 12
  • 107
  • 152