NSUserDefaults backup and iPhone sync

Is the application area in [NSUserDefaults standardUserDefaults] backed up when a user synchronizes their device? If not, can you suggest a close right alternative?

In its documentation, Apple refers to "Application Settings", for example, to purchase applications. I understand, perhaps incorrectly, that they refer to NSUserDefaults, although the terminology does not seem to fit perfectly.

The in-app purchases that I plan to record in [NSUserDefaults standardUserDefaults] must be copied in my project.

Thank you in advance.

+7
source share
1 answer

Yes. NSUserDefaults uses the PLIST file as a backup storage that is backed up by each synchronization. See http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/UserDefaults/Concepts/DefaultsDomains.html for details.

If you want to see for yourself, you can check ~ / Library / Application Support / MobileSync / Backup /. Create an unencrypted backup of the device only with your application and view the files in the PLIST editor.

+10
source

All Articles