Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is the data stored using NSUserDefaults deleted when the app is updated?

Currently I'm creating an app that is storing data using NSUserDefaults.

So when I upload v1 of the app to the app store and then make a new update for the app (v2) is the data stored in NSUsedDefaults deleted when the user updates to the new version?

like image 591
AFB Avatar asked Jan 26 '14 19:01

AFB


1 Answers

The data stored with NSUserDefaults is not deleted when the user updates the app.

It will only be deleted if the user deletes the app.

like image 191
murat Avatar answered Nov 10 '22 22:11

murat