如何为我的应用启用文件共享? [英] How to enable file sharing for my app?

查看:239
本文介绍了如何为我的应用启用文件共享?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个图像编辑应用,用户可以在其中对照片应用效果。我如何启用它以便用户可以在文件共享选项卡中的iTunes中查看我的应用程序,然后只需将照片拖放到应用程序中?

I have an image editing app where users can apply effects to photos. How could I enable it so that users can see my app in iTunes in the File Sharing tab and then just drag+drop photos to the app?

部分电子书阅读器就像Stanza这样工作,这将是一个很酷的选择。也许有人可以指出一个教程或资源,讨论如何启用和使用这种技术。

Some of the eBook readers like Stanza works like this and it would be a cool option. Maybe someone can point out a tutorial or resource that talks about how to enable and use this technique.

推荐答案

你只需要设置 UIFileSharingEnabled 应用程序支持iTunes文件共享)键位于应用的信息plist中。 这是文档的链接。向下滚动到文件共享支持部分。

You just have to set UIFileSharingEnabled (Application Supports iTunes file sharing) key in the info plist of your app. Here's a link for the documentation. Scroll down to the file sharing support part.

过去,还需要定义 CFBundleDisplayName Bundle Display Name ),如果它还没有。 此处提供更多详细信息

In the past, it was also necessary to define CFBundleDisplayName (Bundle Display Name), if it wasn't already there. More details here.

这篇关于如何为我的应用启用文件共享?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆