Reputation: 1630
As far as I know, yes: upgrading iOS should not delete NSUserDefaults. Only deleting the app should do so.
But I am looking into a bug that can only be explained - so far - by iOS resetting NSUserDefaults after upgrade. Can this happen?
Upvotes: 4
Views: 1812
Reputation: 131418
I have never seen an OS upgrade erase an app's user defaults. They are stored in the app's sandbox directory, which is not touched by the upgrade.
Upgrading an app also does not erase user defaults. The only things I'm aware of that erase user defaults are deleting the app, and doing a restore on the device (which wipes EVERYTHING.)
Do you have access to the device in question? if so, you should connect it to a development Mac and capture the app's sandbox directory. You can then check to see what's there.
Upvotes: 7