UIDocumentMenuViewController显示单个浏览选项

时间:2018-09-27 07:28:29

标签: ios swift import uidocumentmenuviewcontroller

我尝试通过以下代码将文件导入到我的应用中:

let importMenu = UIDocumentMenuViewController(documentTypes: [String(kUTTypeData)], in: .import)
        importMenu.delegate = self
        importMenu.modalPresentationStyle = .popover
        importMenu.popoverPresentationController?.sourceView = self.view
        self.present(importMenu, animated: true, completion: nil)

尽管我安装了Google云端硬盘和Dropbox应用,但它仅显示浏览选项。

enter image description here

当我点击“浏览”时,它将打开“文件”应用浏览器,我可以选择云驱动器,但我希望将它们显示在浏览选项上方,如下所示:

enter image description here

我该如何实现?

0 个答案:

没有答案