0

I know that a UIDocumentPickerViewController can be used to select a file from the iCloud but I want to display the user a list of documents present on the iPhone locally and finally extract the URL of the document that the user selects. I have read in a few threads that this can't be achieved directly but clearly apps like WhatsApp and telegram implement these functionalities. Does someone know of a workaround for this?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
  • Have you read the documentation for `UIDocumentPickerViewController`? Have you tried to use it? What is your actual issue? – rmaddy Jan 10 '18 at 17:52
  • Where are these files on the device? Are they in the picture library? Inside the documents of the app? Or just randomly on the device? – Upholder Of Truth Jan 10 '18 at 21:40
  • I want to select a picture or a document from the device storage and store its url, so that I can access the file later on. Similar to how I can send a attachment on WhatsApp(in this case, just select it and not send it) and then when i click on the sent file, it opens. – Abhishek Vora Apr 04 '18 at 20:21

0 Answers0