简体   繁体   English

在我的iPhone应用程序中读取/存储iPhone文档?

[英]Read/Store iPhone documents in my iPhone app?

I am working to create an iPhone app to store documents from the device(iPhone/iPod Touch). 我正在创建一个iPhone应用程序以store documents设备(iPhone / iPod Touch)中的store documents My idea is to keep the files, documents in the app which from the Mac -> Device (iPhone/iPod Touch) -> iPhone app . 我的想法是将文件和文档保存在Mac -> Device (iPhone/iPod Touch) -> iPhone app I know to transfer the documents from Mac to iPhone device. 我知道将文档从Mac传输到iPhone设备。 I confused and i dont have any idea to read the documents from the device to my app. 我很困惑,我不知道要从设备读取文档到我的应用程序。 I have used Google to find the answer and found the way to sync the device with mac and transfer the documents to device. 我已经使用Google找到了答案,并找到了将设备与Mac同步并将文档传输到设备的方法。 But, i can't find the solution to store the device documents to my app. 但是,我找不到将设备文档存储到我的应用程序的解决方案。 I want to store all type of documents in my app (Eg: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, HTM, TXT, TEXT, RTF, RTFD, LOG, CPP, C, WEBARCHIVE, H, M, MM ). 我想将所有类型的文档存储在我的应用中(例如: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, HTM, TXT, TEXT, RTF, RTFD, LOG, CPP, C, WEBARCHIVE, H, M, MM )。 It is possible?. 有可能的?。

Can you please help and suggest me we can do this. 您能帮忙吗,建议我可以做到这一点。 How to read the documents from Mac -> iPhone app. 如何从Mac-> iPhone应用程序读取文档。 Please help me. 请帮我。 Thanks in advance. 提前致谢。

Why not use an existing file service such as DropBox. 为什么不使用现有的文件服务,例如DropBox。 Their SDK is available here: 他们的SDK可在此处​​获得:

https://www.dropbox.com/developers/reference/sdk https://www.dropbox.com/developers/reference/sdk

It's the fastest way to have iOS devices synchronize files and with support for desktop and web as well. 这是让iOS设备同步文件并同时支持桌面和Web的最快方法。

iCloud is also an option. iCloud也是一种选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM