I know that we can share file from app to computer (iTunes), i want to know that can i share Sqlite file with iTunes or there is any way to import sqlite file to excel and then share this excel file from app to iTunes. Any code or help will be appreciable. Thanks
use this key in .plist and solve your problem
<key>UIFileSharingEnabled</key>
<true/>
Specifies whether the application shares files with the user’s computer through iTunes. By apple
Related
I am developing an iPhone app were I want to create a folder from my application on iCloud.
Is it possible to create folder on iCloud programmatically at all?
I want to add image files, text files and audio files in that folder.
Thanks.
Sure you can create folders. When you call [fileManager URLForUbiquityContainerIdentifier:] you get back a file URL for your container and you can put any file hierarchy in there you please.
Sounds like you're just getting started so I suggest you start with Apple's iCloud for Developers Documentation and Videos. Specifically you will want the Advanced iCloud Document Storage video as you'll want more control than CoreData and UIDocument will provide. Apple refers to this this type of iCloud storage as a "Shoebox App".
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.
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:
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:
This is a nice tutorial for starting the iTunes filesharing: How to integrate iTunes file sharing
We not only can backup our files on itunes but also in icloud....
this is how the app data is persisted along the the app updation ,ios upgradation....
As you long you put your data files in standard locations within the app's sandbox and you don't explicitly flag the file as a file that shouldn't be backed up, then the data files will be backed up to iCloud or iTunes (depending on how the user has setup device backups).
It depends on your file scheme, you can decide which information is necessary and should be backed up and which one should not because it can be easily recreated.
Look for the "Where You Should Put Your App’s Files" section
http://developer.apple.com/library/ios/#documentation/FileManagement/Conceptual/FileSystemProgrammingGUide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW2
I have made an iPad application. Now i have a requirement to upload any file into my application shared/document folder from my System through iTunes.
I have learned from this link http://support.apple.com/kb/ht4094 that we can make our application for File Sharing. If our application has enabled File Sharing then our application will be seen under File Sharing Tab in iTunes.
So i want my app to be seen under File Sharing Tabs so that i can share any file into my application.
Please can anybody guide me through this.
Thanks
Just define this key in your info.plist file -
<key>UIFileSharingEnabled</key>
<true/>
I want to transfer file from system (mac/Pc), which is present on my iPhone wifi network, to the document folder of my iPhone App.The scenario of my App is this, it will browse the system which are present in it's network. select any file(such as .pdf or ,docx) from that system(mac/Pc), copy it into the document folder of the APP and than use it with in the APP.During my search i come across the link iPhone : Transfer of files from Mac/Pc to app i have not found the detail instruction document, how to use it. Is Apple support any API or farm work to do this ? Please guide me
This is called iTunes file sharing. In the most simple way, you simply set the UIFileSharingEnabled key in your Info.plist file to YES. See for example this tutorial.
Rewriting itunes is not a simple task but I recommend you a clever and easier solution:
Implement a simple webserver on your iOS app. Write a windows application which will connect to your iOS app through wifi network. Then transfer the necessary files this way: you will send a file to you app, then your app should save it in documents directory.
I am trying to figure out how to copy a ringtone file (.m4r) embedded in the app to iTunes when connected. After the file is copied into iTunes, they can simply sync the file like every other file. I know this is possible, since there are other ringtone apps that do this exact same thing. If someone could point me in the right direction or maybe provide some sample code, that would be great. Thanks.
You can share files from your app's Documents directory with iTunes. Simply add the following XML to your info.plist:
<key>UIFileSharingEnabled</key>
<true/>
Now, files in your app's Documents directory will appear in the File Sharing section of iTunes. Is that what you're after?