How to enable file sharing for my app?
2015-11-05 16:28
579 查看
链接:http://stackoverflow.com/questions/6029916/how-to-enable-file-sharing-for-my-app
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? 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.
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. You must also define
CFBundleDisplayName (Bundle Display Name), if it isn't already there. More details here.
链接:/article/8321981.html
链接:http://stackoverflow.com/questions/14925214/how-to-set-a-custom-folder-with-uifilesharingenabled-yes
You can't. iTunes only shows the contents of the app's Documents directory. iTunes doesn't let a user view the contents of folders insideDocuments.
这里要注意的是,你一定要把要共享的文件放在 Documents 根目录,不能是子目录!!! 不然 iTunes File Sharing 只会显示子目录,不会让用户点击进入子目录,也意味着放在子目录的文件不允许读取。所以一定要把文件直接放在 Documents 下,如
/Applications/90E35BBE-7B62-4D1B-A495-809BC34AB64A/Documents/love.mp3
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? 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.
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. You must also define
CFBundleDisplayName (Bundle Display Name), if it isn't already there. More details here.
链接:/article/8321981.html
链接:http://stackoverflow.com/questions/14925214/how-to-set-a-custom-folder-with-uifilesharingenabled-yes
You can't. iTunes only shows the contents of the app's Documents directory. iTunes doesn't let a user view the contents of folders insideDocuments.
这里要注意的是,你一定要把要共享的文件放在 Documents 根目录,不能是子目录!!! 不然 iTunes File Sharing 只会显示子目录,不会让用户点击进入子目录,也意味着放在子目录的文件不允许读取。所以一定要把文件直接放在 Documents 下,如
/Applications/90E35BBE-7B62-4D1B-A495-809BC34AB64A/Documents/love.mp3
相关文章推荐
- JavaScript_JS判断客户端是否是iOS或者Android
- Angularjs $scope 里面的$apply 方法 和 $watch 方法
- Android基础入门教程——8.3.14 Paint几个枚举-常量值以及ShadowLayer阴影效果
- Android学习路线指南
- Android 开发最佳实践
- 下载文件+保存到SD卡 --归纳整理 MARS ANDROID 课堂笔记
- iOS消息推送相关
- Swift编程中用以管理内存的自动引用计数详解
- iOS8到iOS9 变化笔记
- iOS菜鸟走过的路--01 字符串转为字典(其他格式类似)
- Android4.0的Alertdialog对话框,设置点击其他位置不消失
- android 通知notification
- 视频直播Android端流程图
- Android点击EditText文本框之外任何地方隐藏键盘
- unity/unity3d编译成android apk包瘦身方法
- android——自定义滑动隐藏(结合FrameLayout+ScrollView)+ListView滑动隐藏
- Codeforces Round #329 D Happy Tree Party(树链剖分)
- android下chmod函数返回Operation not permitted
- 微信模板消息推送换行
- ios 百度地图,火星坐标,地球坐标互转