1

Will app lose the NSUSerDefaults values when I do over the air installation?

  1. No app installed in the device
  2. Install the app version 1.0 over the air and saving some values in NSUserDefaults
  3. Install the app version 1.0 over the air again with out deleting the app.
  4. Will I lose the NSUSerDefaults values because of installing the same version?
rmaddy
  • 314,917
  • 42
  • 532
  • 579
jailani
  • 2,260
  • 2
  • 21
  • 45

2 Answers2

4

NSUserDefaults does not reset unless the user deletes the app. So they persists on Update.

Hope this answers your question.

Sarim Sidd
  • 2,166
  • 2
  • 22
  • 31
2

Whatever you have in NSUserDefaults it remains in the device/system. It never gets deleted even when you upgrade your app however on uninstalling or manually deletion it is removed.

Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140