Search code examples
iosiphonensuserdefaults

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?


Solution

  • 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.