Questions tagged [uidocumentpickerviewcontroller]
177 questions
1
vote
1 answer
How do I allow users to save a file to a specific directory and specify a file name in a macOS app?
I built an iOS app in Swift, and I'm adding some functionality for macOS Catalyst.
In my app I create a .txt file upon clicking a button. I want to present a UIDocumentPickerViewController that allows the user to specify the save directory, and file…

Austin Berenyi
- 1,013
- 2
- 13
- 25
1
vote
0 answers
Swift use JSON from a file within application's sandbox
I have a Swift application that has UIDocumentPicker implemented for opening .json files from the user's iCloud Drive or local filesystem. As of now, after selecting a file in the DocumentPicker view controller, the URL to the file is printed to…

drcomputer
- 406
- 2
- 7
- 15
1
vote
0 answers
didPickDocumentsAtURLs delegate is not getting called for UIDocumentPickerViewController
I am trying to use UIDocumentPickerViewController and need to target the app for iOS 11.0 and above. I am testing in simulator for iOS version 11.0, 12.0 and 13.4
The delegate method didPickDocumentsAtURLs in not called on 11.0 and 12.0 however it…

x64
- 332
- 1
- 4
- 13
1
vote
1 answer
UIDocumentPickerViewController copied files disappear on download to test iPad
I am using UIDocumentPickerViewController to allow the user to select files that will be "attached" and available within the App. The concept is allow the user to send detail via email with the selected file attachments.
As each file is attached, I…

Paul
- 79
- 11
1
vote
1 answer
How to get a display folder name and an App icon for an URL returned by UIDocumentPickerViewController?
How to get a display folder name and an App icon for an URL returned by UIDocumentPickerViewController?
Here is an example of my Swift playground code and some debug print output below:
if let newUrl = urlFromPicker {
// 1
print("[DEBUG]…

vaa
- 164
- 15
1
vote
1 answer
How to use UIDocumentPickerViewController with UINavigationController?
I'm trying to push a UIDocumentPickerViewController onto a UINavigationController's stack However, this results in what looks like two navigation bars. The top bar is the normal navigation bar of the navigation controller. Beneath that is the bar…

bright
- 4,700
- 1
- 34
- 59
1
vote
3 answers
UIDocumentPickerViewController is showing flipped content in arabic
this is how I open the document picker
func openDocuments(){
let documentPicker = UIDocumentPickerViewController(documentTypes: ["public.data"],in: .import)
documentPicker.delegate = self
documentPicker.modalPresentationStyle…

DeyaEldeen
- 10,847
- 10
- 42
- 75
1
vote
1 answer
Read files and contents from USB-C drive and iPad iOS13
I created a UIDocumentPickerViewController and picked my folder on USB drive, after listing files with an enumerator, how can i read the contents?
Are you able to read the contents of a file?
Here is my sample code:
@IBAction func openFiles(_…

Fabiosoft
- 1,141
- 14
- 32
1
vote
2 answers
iOS13 UIDocumentPickerViewController - open directory does not display select/open/cancel buttons
I am using UIDocumentPickerViewController to browse through and let the user select a directory but on iOS 13 when this UIDocumentPickerViewController is displayed, the buttons that should be displayed like select/cancel and open/done are not…

learner
- 139
- 1
- 13
1
vote
0 answers
UIDocumentPickerViewController crashes after picking documents
I'm currently working on, macOs 10.15 beta 2, Xcode 11 beta 2, iPadOS 13 beta 2 (iPad Air 2),
I have added UIDocumentPickerViewController as a child viewController in a tabview like this.
var controller : UIDocumentPickerViewController!
func…

rv7284
- 1,092
- 9
- 25
1
vote
0 answers
How to enable selecting a file from UIDocumentPickerViewController?
I'm working on attaching the file to an e-mail and I want to do it through UIDocumentPickerViewController. Basically, the user clicks on the icon and he can select a file. Everything worked, the user could select a file and I could get the url to it…

aleksy.t
- 267
- 2
- 18
1
vote
2 answers
Creating a floating document property control that is available in all tabs of Spotfire dashboard
[Spotfire]How to use the same spotfire Document property control element across different tabs of Spotfire dashboard to trigger Ironpython script ? Currently I have a javascript that sets the documentproperty via a Documentproperty control which…

Krishnaprabha Chari
- 11
- 1
1
vote
1 answer
documentPicker delegate not called by UIDocumentPickerViewController
I have the following ViewController that implements functionality for importing files into the app using the UIDocumentPickerViewController:
class MyViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
…

Alexander George
- 871
- 9
- 22
1
vote
0 answers
icloud drive doesn't appear using UIDocumentPickerViewController
In my app I want import .sqlite from iCloud to restore data, but it's not showing iCloud drive everything is managed, iCloud entitlements are already on and from developer account its enable
ICloud entitlements
In my app, I have integrated this…

John Li
- 111
- 1
- 8
1
vote
2 answers
swift iOS: create UIDocument in app documents folder
i am looking for a way how to do it. I say option how to work with files which are alredy created but UIDocument can not initialized only from URL.
So, here is my code and it does not work:
weak var weakSelf = self
let toFolder =…

Marcuss
- 13
- 4