Questions tagged [uidocumentmenuviewcontroller]
5 questions
3
votes
0 answers
UIDocumentMenuViewController have wrong frame listView
Good day to all. I support the old version of the application written on Objective C . I want to implement a functional - File Browser(File Provider). But using UIDocumentMenuViewController or UIDocumentPickerViewController i have problem with…

Lipatov Eugen
- 407
- 3
- 10
2
votes
2 answers
How to get the source of the files from UIDocumentMenuViewController or UIDocumentPickerViewController?
I have successfully implemented a feature letting the user pick a file to my app through UIDocumentMenuViewController and UIDocumentPickerViewController.
But I cannot find out how can I detect the source of the file. There are sources like Files,…
user9749232
1
vote
0 answers
iOS - UIDocumentMenuViewController presented from within WKWebView dismisses parent view controller
This question is similar to other questions like this and this, with a few differences:
It concerns UIDocumentMenuViewController instead of UIDocumentPickerViewController. The former has been deprecated in favor of the latter, but the former is…

Landon
- 454
- 3
- 14
1
vote
0 answers
UIDocumentMenuViewController showing single browse option
I try to import files to my app via the following code:
let importMenu = UIDocumentMenuViewController(documentTypes: [String(kUTTypeData)], in: .import)
importMenu.delegate = self
importMenu.modalPresentationStyle = .popover
…

J.Doe
- 326
- 2
- 14
0
votes
0 answers
Restrict document types for only PDF and Word documents
I'm using the UIDocumentMenuViewController to pick and choose documents. I want to restrict users to pick only .pdf and .docx files.
I know I can allow only PDFs like this.
UIDocumentMenuViewController(documentTypes: [String(kUTTypePDF)], in:…

Isuru
- 30,617
- 60
- 187
- 303