Alex Rivera | Logout

Do NSUserDefaults persist through an Update to an app in the Appstore?

Asked 2009-10-28T17:22:01.163
113

Is this the case? Do NSUserDefaults get reset when you submit an update to an app on the App Store, or are they reset?

My app is crashing when updated but not crashing when downloaded fully - so I'm trying to determine what could possibly be different in the updated session to the freshly downloaded session.

Cheers, Nick.

Edit
Report

1 Answer

124

They are usually not reset unless the user deletes the app. For basic data, NSUserDefaults is the best way to save data such as preferences, dates, strings etc. If you are looking to save images and files, the file system is a better bet.

answered 2009-10-28T17:23:10.817

Your Answer