Search code examples
iphoneobjective-citunes

Will sqlite database be port over to iTunes when iphone app got sync


I was wondering whether my app's sqlite database will be transfer over to desktop when user sync the app with iTunes or do I need to do some coding to ensure that it will be transferred?

Please advice. Many thanks.


Solution

  • You can transfer the content of your document directory's document folder contents by adding UIFileSharingEnabled key to your info.plist.

    Please check the below image:

    UIFileSharingEnabled

    After adding this key to your info.plist, when you sync your iPad with iTunes the documents inside the document folder will be listed in iTunes as shown below:

    FileSharingiPhone

    This is a nice tutorial for starting the iTunes filesharing: How to integrate iTunes file sharing