1
我有iCloud的文件導入 我得到空的選項我選擇從(iCloud中,谷歌驅動器,Dropbox的...等等) 我有iCloud的驅動器和數據導入的地方後一個問題權利是對UIDocumentMenuViewController空白選項
那麼,什麼是錯的代碼或者是有關於設置的任何地方都可能導致此問題?
這裏是代碼
@IBAction func selectionButtonAction(_ sender: Any) {
let types = [kUTTypePDF as String ,kUTTypePNG as String, kUTTypeImage as String,kUTTypeJPEG as String]
UINavigationBar.appearance().isTranslucent = true
let documentMenu = UIDocumentMenuViewController(documentTypes: types, in: .import)
documentMenu.delegate = self
self.viewController?.present(documentMenu, animated: true, completion: nil)
}
func documentMenu(_ documentMenu: UIDocumentMenuViewController, didPickDocumentPicker documentPicker: UIDocumentPickerViewController) {
documentMenu.delegate = self
self.viewController?.present(documentMenu, animated: true, completion: nil)
}
func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentAt url: URL) {
if controller.documentPickerMode == .import {
// do staff
}
}
這是我得到當我運行iOS上的10
應用程序時,我按選擇文件
然後按在iCloud上
後這就是我得到的,如果我上運行的iOS 9應用程序:
我敢肯定,我有數據有喜歡這裏的icloud的驅動程序
而權利