Questions tagged [uidocumentpickerviewcontroller]
177 questions
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
1 answer
UIDocumentPickerViewController in import mode returns .icloud files
using a UIDocumentPickerViewController in .import mode on iCloud Drive sometimes returns files with a .icloud extension. This extension means that the file are not physically present on the device, but on iCloud.
Since the mode is .import, the files…

vomi
- 993
- 8
- 18
1
vote
0 answers
How do you customize the icons within a UIDocumentPickerViewController?
I am currently trying to customize my UIDocumentPickerViewController and I am having trouble changing the colors of the icons that represent the files within the documents directory. They are all blue and I want to turn them orange. Would I have to…

NFarrell
- 255
- 1
- 17
1
vote
1 answer
UIDocumentPickerViewController delegate is called before the presenter's viewWill/DidAppear
The UIViewController presenting the UIDocumentPickerViewController gets triggered its viewWillAppear and viewDidAppear functions before the UIDocumentPickerDelegate is called with any of the outcomes.
How do you present a different landing depending…

Nuthinking
- 1,211
- 2
- 13
- 32
1
vote
1 answer
Enumerating an iCloud Drive directory
I'd like to enumerate the files in a directory chosen by the user within a UIDocumentPickerViewController.
I get the directory URL returned from the document picker.
I call startAccessingSecurityScopedResource
I create an NSFileCoordinator instance…

orion
- 354
- 1
- 13
1
vote
1 answer
How to restrict UIDocumentPickerViewController import to .archive files? (NSKeyedArchiver)
In an app that saves data as an archive (NSKeyedArchiver), I am allowing users to export the .archive file to have a backup. Users can then re-import those files to retrieve backed up data.
Is there a way to restrict UIDocumentPickerViewController…

Kqtr
- 5,824
- 3
- 25
- 32
1
vote
2 answers
how to get iphone device local stored document [pdf,docx,doc,xlsxl] in swift
Using UIDocumentPickerViewController got all the files[pdf,docx,doc,xlsxl,image] using icloud. Here my code
@IBAction func uploadNewResumeAction(_ sender: Any) {
let documentPicker = UIDocumentPickerViewController(documentTypes: ["public.text",…

saravanar
- 639
- 2
- 11
- 25
1
vote
1 answer
Show Cloud storages option in Document Picker view controller in Swift
I'm trying to open cloud storages app in my document picker view controller. I have applied all the necessary delegates method of document picker view controller. When I hit a button it shows me document picker view but the application icons and…

Hamza
- 231
- 1
- 8
- 22
1
vote
0 answers
Document picker in Swift
I'm trying to open document picker view controller on a click of a button, but there are no option shown in it. Only more option is shown as u can see in the screen shot. I want to show options of iCloud, google drive, dropbox etc. I just want to…

Hamza
- 231
- 1
- 8
- 22
1
vote
2 answers
Get file from Url or path?
I have integrated UIDocumentPickerDelegate or UIDocumentMenuDelegate, I have an issue to get the file from URL or DocumentPicker. How can I solve this issue in iOS swift?

Ajay Sangani
- 21
- 1
- 7
1
vote
0 answers
How can I import file with db extension through document picker?
Actually, I am developing an ios app in which I am providing import and export option for db file. I am done with export option and "MyApp.db" does successfully upload to ICloud. but I am unable to import "MyApp.db". Actually my file is not…

danish naeem
- 51
- 8
0
votes
1 answer
How to get saved file name from UIDocumentPickerViewController on export
I'm saving a file using UIDocumentPickerViewController, by having it move and rename a file from a temp location:
UIDocumentPickerViewController* documentPicker = [[UIDocumentPickerViewController alloc] initForExportingURLs:@[theTempFileURL] …

david ralley
- 21
- 6
0
votes
1 answer
FileImporter / UIDocumentPickerViewController not showing contents
Both the .fileImporter function (in SwiftUI) and the UIDocumentPickerViewController are shown as intended, but the do not show any contents.
Instead it says: "Content not available" on the Shared and Recent Icons and "My iPhone is empty" on the…

Simon Lemcke
- 3
- 3
0
votes
1 answer
What is an iOS 16-compatible way of turning a list of uniform type indicator strings (e.g., ["public.text", "public.image"]) into a list of UTType?
My app has a list of supported uniform type indicator (UTI) strings:
public static let supportedUTIs = ["public.text", "public.image", "com.adobe.pdf", "public.comma-separated-values-text", "com.microsoft.word.doc",…

swiftdrift
- 1
- 2
0
votes
0 answers
Strange ios error showing UIDocumentPickerViewController (or some popups)
I have an iOS app using SwiftUI to develop its views.
With some native popups (as the one of SKStoreReviewController.requestReview(in: windowScene) and the Files App Browser I'm getting a strange error.
I open the rate popup this way:
if let…

Wonton
- 1,033
- 16
- 33