iOS upload .pdf file

后端 未结 2 1202
天涯浪人
天涯浪人 2021-01-03 17:05

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?

2条回答
  •  粉色の甜心
    2021-01-03 17:27

    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.

提交回复
热议问题