gpt4 book ai didi

ios - 从 UIDocumentPickerViewController 中选择文件夹时,第三方文件提供程序显示为灰色?

转载 作者:行者123 更新时间:2023-12-01 15:35:50 25 4
gpt4 key购买 nike

我有一个文件类型为“public.folder”的 UIDocumentPickerViewController(我也尝试过 kUTTypeFolder),用户可以在其中选择要保存的文件的默认目录。它会调出正确的用户界面来选择文件夹,但是,所有第三方提供商(Google Drive、Dropbox 等)都是灰色的,无法选择。我可以选择 iCloud Drive 和 On My iPhone 就好了。

这是我显示 Controller 的功能:

@IBAction func pickDefaultDirectory(_ sender: Any) {
let documentPicker = UIDocumentPickerViewController(documentTypes: ["public.folder"], in: .open)

documentPicker.delegate = self

self.present(documentPicker, animated: true, completion: nil)
}

这就是我发现的每篇“通过 UIDocumentPickerViewController 选择文件夹”文章都说要做的事情,但我没有运气。有谁知道为什么会这样?我只是忘记了那里的东西吗?

最佳答案

根据 Dropbox 开发人员的说法,目前不支持此功能。

The Dropbox document picker doesn't support opening folders, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.



Dropboxforum

关于ios - 从 UIDocumentPickerViewController 中选择文件夹时,第三方文件提供程序显示为灰色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58262986/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com