Copy file from iPhone app to iTunes

二次信任 提交于 2019-12-23 03:21:31

问题


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.


回答1:


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?



来源:https://stackoverflow.com/questions/4463456/copy-file-from-iphone-app-to-itunes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!