2
我正在開發具有導入從提供UIDocumentPickerViewControllerExtenstion選擇該文件,但沒有在頂部左側我想刪除這個位置按鈕其他雲資源的音頻文件的功能的應用程序。下面UIDocumentPickerViewController - 隱藏位置按鈕
是我的代碼:
let menupicker = UIDocumentMenuViewController(documentTypes: [kUTTypeAudio as String], in: .import)
menupicker.delegate = self
self.present(menupicker, animated: true, completion: nil)
func documentMenu(_ documentMenu: UIDocumentMenuViewController, didPickDocumentPicker documentPicker: UIDocumentPickerViewController) {
documentPicker.delegate = self
documentPicker.navigationItem.leftBarButtonItem = nil
self.present(documentPicker, animated: true) {
documentPicker.navigationItem.leftBarButtonItem = nil
documentPicker.navigationItem.backBarButtonItem = nil
documentPicker.navigationItem.hidesBackButton = true
}
}