Questions tagged [uidocumentpickerviewcontroller]

177 questions
23
votes
3 answers

UIDocumentPickerViewController iOS13 not Working

On my application, i use UIDocumentPickerViewController to allow the user to pick files (import), but starting from iOS 13 that functionality stop working, basically the document picker is open, but the user can't choose a file (taping the file does…
13
votes
1 answer

UIDocumentPickerViewController - 'init(documentTypes:in:)' was deprecated in iOS 14.0

Method is deprecated from iOS 14, so need support for both iOS 14 and later. And iOS 13 and earlier.
Ashvin
  • 8,227
  • 3
  • 36
  • 53
11
votes
1 answer

Reading files from external storage in iOS 13

I have an iOS app that is trying to read files from an external storage device without importing them into the App's sandbox. I have followed Apple's documentations outlined here to do this -- Providing Access to Directories I'm able to retrieve the…
Kal
  • 24,724
  • 7
  • 65
  • 65
9
votes
2 answers

UIDocumentPickerViewController: how to open a given subdirectory

I am using UIDocumentPickerViewController with the import mode (UIDocumentPickerModeImport) in order to let the user import documents from cloud storage providers (dropbox, etc). Each time the user repeat the import process, he must browse through…
8
votes
0 answers

Pick document and gallery images with same picker

I can pick gallery images with UIImagePickerController and documents with UIDocumentPickerViewController. But my question is, is there any way to pick gallery image and pdf documents with same picker? I have tried UIDocumentPickerViewController with…
Arnab
  • 4,216
  • 2
  • 28
  • 50
8
votes
0 answers

Downloading files in a folder selected by UIDocumentPickerController

I'm trying to download the files contained in a folder hierarchy picked by the UIDocumentPickerController. I use the URL I get from documentPicker:DidPickDocumentsAtURLs: with an NSFileCoordinator. For a folder provided by the iCloud Drive file…
7
votes
4 answers

UIDocumentPickerDelegate method(didPickDocumentsAt) not called by iOS

I have a query regarding delegate method not been getting called for DocumentPickerViewController, here's the background, I just need to import the resource whatever available from my Files App and for that reason i am using…
7
votes
3 answers

UIDocumentPicker navigation bar buttons are hidden at iOS 11

I notice a problem in my UIDocumentPicker's navigation bar at iOS 11 only, the done, cancel, or edit buttons are invisible, and when the user touch it it appears i.e. The color at normal state is white, even when changing the…
Ahmed Adnan Qazzaz
  • 333
  • 1
  • 3
  • 15
6
votes
3 answers

How to get All Extensions for UTType Image, Audio, and Video

Is there a way to get All of the different UTType extension types as Strings? I need them specifically for images, audio, and video. I followed this answer, but it doesn't give me all of the extensions var types = [String]() let utiTypes =…
6
votes
2 answers

UIDocumentPickerViewController - Delegate method not being called

I'm using UIDocumentPickerViewController to select documents from the Files and upload it to a server. I'm able to successfully access Files, but upon clicking on the file the delegate method doesn't get called. I've used the following code to call…
6
votes
1 answer

iOS custom UTI/filetype with UIDocumentPickerViewController

I've got a custom filetype that I'm trying to allow my app to open from a UIDocumentPickerViewController. It isn't, however, working. (A similar situation and problem seem to be described here, but there's no working solution.) In my Info.plist I've…
KT_
  • 978
  • 11
  • 26
5
votes
2 answers

UIDocumentPickerViewController not calling didPickDocumentAtURL on Mac Catalyst

I have this code in a UIViewController that confirms to UIDocumentPickerDelegate: - (void)openTextFilePicker { NSArray *UTIs = [NSArray arrayWithObjects:@"public.text", nil]; [self openFilePicker:UTIs]; } - (void)openFilePicker:(NSArray…
arlomedia
  • 8,534
  • 5
  • 60
  • 108
5
votes
2 answers

Buttons not visible in UIDocumentPickerViewController

I want to import a document into my application. I have created a Demo to import Document. A demo is working. below is the code of the Demo to open UIDocumentPickerViewController. -(IBAction) btnOpenClicked{ UIDocumentPickerViewController…
Crazy Developer
  • 3,464
  • 3
  • 28
  • 62
4
votes
0 answers

Unable to select pre-registered files types using UIDocumentPickerViewController with with pre-iOS 14 target

I'm using a document picker to import data into an app. One of the files to import is a .GPX (it's actually an XML file of GPS data, but that's not relevant). I define a custom file type (as it's not covered by the standard file types covered…
flanker
  • 3,840
  • 1
  • 12
  • 20
4
votes
1 answer

Unable to select file when using UIDocumentPickerViewController initForOpeningContentTypes

I'm trying to use the iOS 14 initForOpeningContentTypes: rather than the deprecated initWithDocumentTypes:inMode: and I'm unable to get access to files with the extension p8 (they are greyed out). I'm trying the following code: NSArray *…
Kyle
  • 17,317
  • 32
  • 140
  • 246
1
2 3
11 12