我已经UIDocumentPickerViewController
在我的 class.implemented 委托方法中实现了。
我想知道我怎么知道documentPickerMenu
我选择了哪个选项。我想在文档控制器的呈现菜单中实现 Dropbox 选择。我想从委托方法中知道它。
方法如下
func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentAt url: URL) {
let cico = url as URL
print("The Url is : \(cico)")
}
func documentMenu(_ documentMenu: UIDocumentMenuViewController, didPickDocumentPicker documentPicker: UIDocumentPickerViewController) {
documentPicker.delegate = self
print(documentMenu.accessibilityLabel ?? "Menu")
present(documentPicker, animated: true, completion: nil)
}
func documentMenuWasCancelled(_ documentMenu: UIDocumentMenuViewController) {
print("we cancelled")
dismiss(animated: true, completion: nil)
}
如果有人可以帮助我提前谢谢。