将文件从iPhone应用程序复制到iTunes

将文件从iPhone应用程序复制到iTunes

本文介绍了将文件从iPhone应用程序复制到iTunes的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚如何在连接时将嵌入在应用程序中的铃声文件(.m4r)复制到iTunes.将文件复制到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.

推荐答案

您可以与iTunes共享应用程序文档"目录中的文件.只需将以下XML添加到您的info.plist中:

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/>

现在,应用程序文档"目录中的文件将显示在iTunes的文件共享"部分中.那是你所追求的吗?

Now, files in your app's Documents directory will appear in the File Sharing section of iTunes. Is that what you're after?

这篇关于将文件从iPhone应用程序复制到iTunes的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 06:21