Brian
Brian

Reputation: 819

Copy file from iPhone app to iTunes

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.

Upvotes: 1

Views: 1780

Answers (1)

wpearse
wpearse

Reputation: 2422

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?

Upvotes: 5

Related Questions