iOS upload .pdf file

假如想象 提交于 2019-11-30 00:02:58

问题


How do I upload a file using Objective C for iOS? I'm really stuck. I can upload an image using UIImagePickerController, but is there such a thing for .pdf/.doc files?

Many thanks in advance,


回答1:


No, there isn't, assuming you mean pdfs belonging to iBooks and docs belongs to Pages.

There is no centralised storage on iOS for such documents, and your application cannot access files that belong to other applications.

If the pdf & .docs are stored within your application, you can write your own picker. It might be worth explaining your use case a bit more, as there may be a way to achieve what you want.




回答2:


You can integrate one of the open-source http server like this one to your app.



来源:https://stackoverflow.com/questions/7778242/ios-upload-pdf-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!