"You can think of
NSUserDefaultsas an invisible
.plistthat you can read and write to, without ever being able to actually see the file. Using
NSUserDefaults, you will be able to restore saved values even if the app has been killed in multitasking.
However, how you choose between
NSUserDefaultsshould be based off of how much data you need to save. Apple recommends only saving small amounts of data to
NSUserDefaults. If you need to save a lot of information then
.plistis the way to go. Either that or of course