Iphone: saving user data against application updates

I am developing my first iphone application that allows users to take pictures and save them and other metadata in the Application Documents folder.

If in the future I will provide updates for users, does this affect user-generated data? If so, what is the best data storage strategy?

Thank you so much

+6
version-control iphone
source share
1 answer

No, any data stored in the User Documents folder remains unchanged during and after the update.

EDIT:

Here's the official link: iOS Application Programming Guide .

Files saved during application updates

When a user downloads an application update, iTunes installs the update in the new application directory. It then deletes user data files from the old installation into the new application directory before uninstalling the old installation. Files in the following directories will be saved during the upgrade process:

<Application_Home> / Documents

<Application_Home> / Library

Although files in other user directories may also be moved, you should not rely on them to be present after the upgrade.

+7
source share

All Articles