I'm interested in using data protection in my iOS app. There seem to be three places I can do this:
- In the App ID in the developer centre.
- In the entitlements plist
- By using
[-NSFileManager setAttributesOfItemAtPath:error:]
I've read the documentation that I can find, but none of it tells me which of these I need to do. If I do 1, does that turn it on for the whole app? Can I do 3 without doing 1? Do I need to do 2 at all?
NSURLCache
and Core Data stores (which need theNSPersistentStoreFileProtectionKey
option set). – Heeler