将文件从Mac/PC传输到iPhone App Document文件夹 [英] Transfer file from Mac/PC to iPhone App Document folder

查看:242
本文介绍了将文件从Mac/PC传输到iPhone App Document文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将文件从我的iPhone wifi网络上的系统(mac/Pc)传输到我的iPhone App的文档文件夹中.我的App的场景是这样,它将浏览存在的系统在它的网络中.从该系统(mac/Pc)中选择任何文件(例如.pdf或.docx),将其复制到APP的文档文件夹中,然后在APP中使用它.在搜索过程中,我遇到了链接 iPhone:我将文件从Mac/PC传输到应用找不到详细的说明文件,如何使用.苹果是否支持任何API或服务器场工作?请指导我

I want to transfer file from system (mac/Pc), which is present on my iPhone wifi network, to the document folder of my iPhone App.The scenario of my App is this, it will browse the system which are present in it's network. select any file(such as .pdf or ,docx) from that system(mac/Pc), copy it into the document folder of the APP and than use it with in the APP.During my search i come across the link iPhone : Transfer of files from Mac/Pc to app i have not found the detail instruction document, how to use it. Is Apple support any API or farm work to do this ? Please guide me

推荐答案

这称为 iTunes文件共享.用最简单的方法,您只需将Info.plist文件中的UIFileSharingEnabled键设置为YES.参见例如本教程.

This is called iTunes file sharing. In the most simple way, you simply set the UIFileSharingEnabled key in your Info.plist file to YES. See for example this tutorial.

这篇关于将文件从Mac/PC传输到iPhone App Document文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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