I am new to iOS programming – I have written an iOS app for a company that uses the app for their workers to log in when they go to work, and to log out when they leave. (They often work on remote places).
All I need now is a way to store two simple strings.
1. String is the user name
2. String is a salted md5 password
Then the user doesn’t need to write all the credentials every time he wants to login and out.
What is the simples? SQLite, CoreData, Plst?
Thanks!
See my answer here:
I’d avoid using a plist. The easiest way to save simple data in an application, by far, is
NSUserDefaults.Check out this tutorial for a simple guide on how to use
NSUserDefaults. Always be sure tosynchronizeNSUserDefaultswhen you’re done writing to them.Example:
Later: