I am a newbie in the iPhone dev and I want to know if I will save some data(NSSDictinary) with NSKeyedArchiver, tis data persist after an update process of my app via AppStore?
Let’s say that I want to save user an pass for my app and probably this information will be saved into the app folder.If I will update the app via AppStore with iTunes, the old data saved are still there?The user will find his saved login credentials?
Thanks,
Alex.
You should use the
NSUserDefaultsto store such settings. It will write the information to a directory that will be preserved accross syncing, restoring a backup and application upgrades.Alternatively you can use the Keychain to store the username/password. This is more secure, and it will also survive application updates or syncing / restoring a backup.