iOS 上传 .pdf 文件 [英] iOS upload .pdf file

查看:29
本文介绍了iOS 上传 .pdf 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 Objective C for iOS 上传文件?我真的被困住了.我可以使用 UIImagePickerController 上传图像,但是 .pdf/.doc 文件有这样的东西吗?

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?

非常感谢,

推荐答案

不,没有,假设您的意思是 pdf 属于 iBooks 而 docs 属于 Pages.

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

iOS 上没有此类文档的集中存储,您的应用程序无法访问属于其他应用程序的文件.

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

如果 pdf &.docs 存储在您的应用程序中,您可以编写自己的选择器.可能值得多解释一下您的用例,因为可能有一种方法可以实现您想要的.

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.

这篇关于iOS 上传 .pdf 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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