Save data in iOS without using a database
I have now created my firs iOS app UI – a nice tab bar that toggles between four different views.
I now want to store a string that I have entered in a text field, so that the application remembers it the next time I start the application. For this small piece of data, I do not want to go through the hassle of using a database.
This great tutorial describes exactly how this is done:
NSUserDefaults is ideal for saving small amounts of data. Check it out.