iPhone Documents directory and UIFileSharingEnabled, hiding certain documents

The answer given by FrenchKiss Dev is not correct. The user will still be able to see the “.data” directory in iTunes and save that locally with all the files inside it. Instead, store private documents in Library/Preferences According to Apple: In addition to the directories documented previously, the entire /Library directory has always been … Read more

How to enable file sharing for my app?

You just have to set UIFileSharingEnabled (Application Supports iTunes file sharing) key in the info plist of your app. Here’s a link for the documentation. Scroll down to the file sharing support part. In the past, it was also necessary to define CFBundleDisplayName (Bundle Display Name), if it wasn’t already there. More details here.