我的应用程序中的iTunes文档目录 [英] iTunes Documents Directory in my app
本文介绍了我的应用程序中的iTunes文档目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何设置我的应用程序以通过iTunes接受文档,例如Air Sharing或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?
谢谢
推荐答案
要为您的应用程序启用文件共享,请执行以下操作:
To enable file sharing for your application, do the following:
- 将UIFileSharingEnabled键添加到应用程序的信息中。 plist文件并将键的值设置为YES。
- 将您要共享的任何文件放在应用程序的Documents目录中。
- 当设备插入用户计算机后,iTunes会在所选设备的应用程序选项卡中显示文件共享部分。
- 用户可以将文件添加到此目录或将文件移动到桌面。
- Add the UIFileSharingEnabled key to your application’s Info.plist file and set the value of the key to YES.
- Put whatever files you want to share in your application’s Documents directory.
- When the device is plugged into the user’s computer, iTunes displays a File Sharing section in the Apps tab of the selected device.
- The user can add files to this directory or move files to the desktop.
这篇关于我的应用程序中的iTunes文档目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文