我的应用程序中的 iTunes 文档目录

发布于 2024-09-25 11:32:13 字数 115 浏览 0 评论 0原文

如何设置我的应用程序以通过 iTunes 接受文档,例如 Air Shareing 或 VLC 应用程序? 我的意思是,我希望允许用户使用 iTunes 从应用程序获取内容。 有人知道怎么做吗?

谢谢

how can I setup my app to accept documents via iTunes, like the Air Sharing or VLC app?
I mean, I want to allow users to get content from the app using iTunes.
Anyone know how?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柳絮泡泡 2024-10-02 11:32:13

复制自 http://developer.apple.com/library/ios/releasenotes/General/WhatsNewIniPhoneOS/Articles/iPhoneOS3_2.html#//apple_ref/doc/uid/TP40009337-SW11

要为您的应用程序启用文件共享,请执行以下操作:

  1. 将 UIFileSharingEnabled 键添加到应用程序的 Info.plist 文件中,并将该键的值设置为 YES。
  2. 将您想要共享的任何文件放入应用程序的文档目录中。
  3. 当设备插入用户的计算机时,iTunes 会在所选设备的“应用程序”选项卡中显示“文件共享”部分。
  4. 用户可以将文件添加到该目录或将文件移动到桌面。

Copied from http://developer.apple.com/library/ios/releasenotes/General/WhatsNewIniPhoneOS/Articles/iPhoneOS3_2.html#//apple_ref/doc/uid/TP40009337-SW11.

To enable file sharing for your application, do the following:

  1. Add the UIFileSharingEnabled key to your application’s Info.plist file and set the value of the key to YES.
  2. Put whatever files you want to share in your application’s Documents directory.
  3. When the device is plugged into the user’s computer, iTunes displays a File Sharing section in the Apps tab of the selected device.
  4. The user can add files to this directory or move files to the desktop.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文