1

I have a PDF or Doc file stored in iphone that i need to upload in my app . How to upload that document.

This is what i have tried but it is showing iCloud.

UIDocumentMenuViewController *importMenu =
[[UIDocumentMenuViewController alloc] initWithDocumentTypes:[self typeOfDocuments]
                                                     inMode:UIDocumentPickerModeImport];

importMenu.delegate = self;
[self presentViewController:importMenu animated:YES completion:nil];
Eiko
  • 25,601
  • 15
  • 56
  • 71
user3908592
  • 43
  • 10
  • You can not fetch the documents resides in device memory, even due to app sandboxing you can't get the document of other Apps too – Janmenjaya Sep 28 '16 at 10:28

1 Answers1

-1

Please see a similar question here - iOS - How to access the device's file library?

Long story short, it's not really possible unless you create the PDF through your app, or are passed it through a custom URL scheme.

Community
  • 1
  • 1
user1898712
  • 368
  • 6
  • 18