我在 iphone 中存储了一个 PDF 或 Doc 文件,我需要将其上传到我的应用程序中。 如何上传该文件。
这是我尝试过的方法,但它显示的是 iCloud。
UIDocumentMenuViewController *importMenu =
[[UIDocumentMenuViewController alloc] initWithDocumentTypes:[self typeOfDocuments]
inMode:UIDocumentPickerModeImport];
importMenu.delegate = self;
[self presentViewController:importMenu animated:YES completion:nil];
最佳答案
请在此处查看类似问题 - iOS - How to access the device's file library?
长话短说,除非您通过您的应用程序创建 PDF,或者通过自定义 URL 方案传递它,否则这实际上是不可能的。
关于ios - 如何将存储在 iphone 中的 pdf 上传到我在 iOS 中的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39744723/