Questions tagged [uidocumentpickerviewcontroller]
177 questions
2
votes
0 answers
UIDocumentPickerViewController Dismissal
I wish to have a DocumentBrowser in my app, in the Apple Docs it is stated that the UIDocumentBrowser must be the rootWindow of my APP, so I should use UIDocumentPicker instead, but I realised that if a delegate method is called on UIDocumentPicker…

tryhardgeci
- 39
- 3
2
votes
0 answers
How to customised UIDocumentPickerViewController?
I'm using UIDocumentPickerViewController for derives(likes Dropbox, google etc.).
let importMenu = UIDocumentPickerViewController(documentTypes: [String(kUTTypeContent),String(kUTTypeItem)], in: .import)
importMenu.delegate = self
…

Sourav Mishra
- 501
- 4
- 21
2
votes
2 answers
UIDocumentPickerViewController files disabled?
I have a UIDocumentPickerViewController with the following code:
UIDocumentPickerViewController *documentPicker =
[[UIDocumentPickerViewController alloc] initWithDocumentTypes: @[@"public.text", @"public.sql"]
…

Kyle
- 17,317
- 32
- 140
- 246
1
vote
0 answers
UIDocumentPickerViewController custom uti for .apk file but can't work only in iOS 16.1
I have a UIDocumentPickerViewController with the following code:
if #available(iOS 14.0, *) {
let apkType = UTType("com.coocaa.apk")
let docPickerVC = UIDocumentPickerViewController(forOpeningContentTypes: [apkType!])
…

Kenny
- 11
- 1
1
vote
1 answer
How to reproduce UIDocumentUIPickerViewController NSCocoaErrorDomain Code=260?
I am presenting the UIDocumentUIPickerViewController from a view controller like this:
let documentPicker = UIDocumentPickerViewController(
documentTypes: [String(kUTTypePDF), String(kUTTypeImage)],
in: .import
)
documentPicker.delegate =…

Sergio
- 1,610
- 14
- 28
1
vote
0 answers
UIDocumentPickerViewController - jump to target folder with directoryURL
I want to access a PDF file in a folder just to open the PDF file. When opening the UIDocumentPickerViewController, I want to open the target folder directly in which the file is stored. With the directoryURL property I try to enter the target URL…

Denis
- 31
- 1
- 3
1
vote
1 answer
Getting UIDocumentPickerViewController to only allow the selection of binary data files on iOS 13
My app is stuck at iOS 13 for the time being, and I can't get the UIDocumentPickerViewController only to allow the selection of binary files.
This is what I'm putting into my info.plist
UTExportedTypeDeclarations
…

Yogurt
- 2,913
- 2
- 32
- 63
1
vote
0 answers
UIdocumentPickerViewController doesn't pick PDF's from the simulator
Here is the code that presents the picker when clicked on a button. I've tried the same on a different mac device and it worked just fine. Not sure what's different. Any help would be appreciated. Thanks!
var controller:…

Karthikeya Chowdary
- 11
- 2
1
vote
1 answer
Reading file inside documentPicker returns nil
I am reading a plist file selected by the user in iOS swift. The code works as expected on XCode simulators (iPhone 13). But on a real iPhone 13, the readArrayFromPlist function returns nil. I couldn’t find the reason.
I've selected the file using…

user3157047
- 479
- 5
- 15
1
vote
0 answers
How do I change the text of the "open" button in UIDocumentPickerViewController?
I've got an iOS app using the document picker view. Image demonstrating the button
When testing it however, I get the text "done" instead of what ideally would be "open" in the file picker when the user is prompted to proceed with the selection. How…

aryan
- 13
- 2
1
vote
1 answer
Choose destination when saving file
Is it possible to make user able to choose a destination for the file that he wants to download, something like DocumentPicker which you can use when choosing a file to upload?
I want something like this:

stackich
- 3,607
- 3
- 17
- 41
1
vote
2 answers
How could one produce an icon from a document (based on file type), selected via UIDocumentationPickerController?
I am new fairly new to swift development but am obsessed and in love with learning, I have not only dedicated myself to learning but I am starting to apply my knowledge and have built a small messaging app with the capability to select a file. I…
user15787860
1
vote
0 answers
Add an environment object to UIDocumentPickerViewController
I'm trying to import mp3 files into my app from outside the app's sandbox using the file browser. I have a "store" environment object where i have the folder URL to which I'd like to move the selected file. I want to add that store as an environment…

ocdelightful
- 11
- 4
1
vote
0 answers
Exclude executable files from selecting when using UIDocumentPickerViewController
I've a requirement where our app should not select any executable file from iCloud Drive as an attachment. But since I'm using UIDocumentPickerViewController to initialize it, I'm not sure how to exclude kUTTypeExecutable UTI. Please let me…

Naveen
- 636
- 8
- 28
1
vote
0 answers
Weird display on UIDocumentPickerViewController or UIDocumentBrowserViewController
I recently got stuck on an UI problem that UIDocumentPickerViewController doesn't show correctly. See the picture below.
Also, I tried UIDocumentBrowserViewController, got the same result.
Has anyone encountered this problem?
Demo display on…

Eric Xu
- 11
- 2