uidocumentmenuvc

UIDocumentMenuViewController crashes on iPad but not on iPhone

▼魔方 西西 提交于 2019-12-10 16:14:36
问题 Presenting a UIDocumentMenuViewController to be able to load file into app. On iPhone it works, but not on iPad. Using iOS9. Any idea what is wrong? dmvc = UIDocumentMenuViewController(documentTypes: ["public.data"], inMode: .Import) dmvc!.delegate = self dmvc!.popoverPresentationController?.sourceView = addSongButton self.presentViewController(dmvc!, animated: true, completion: nil) 2016-06-07 09:45:45.256 Memorise[2994:977408] the behavior of the UICollectionViewFlowLayout is not defined

How to open the Document files e.g(.pdf,.doc,.docx) in ios mobile when a button action using swift3.0?

岁酱吖の 提交于 2019-11-28 09:21:23
I need to open UIDocumentPickerViewController and It should allow user to select all type of files. ie.(.pdf,.doc)files I used UIDocumentPickerViewController method. my Code: UIDocumentPickerDelegate, UIDocumentMenuDelegate in my class declaration //upload file func OpenFile(){ let importMenu = UIDocumentMenuViewController(documentTypes: [String(kUTTypePNG),String(kUTTypeImage)], in: .import) importMenu.delegate = self importMenu.modalPresentationStyle = .fullScreen self.present(importMenu, animated: true, completion: nil) } @available(iOS 8.0, *) public func documentPicker(_ controller:

How to open the Document files e.g(.pdf,.doc,.docx) in ios mobile when a button action using swift3.0?

假如想象 提交于 2019-11-27 02:27:38
问题 I need to open UIDocumentPickerViewController and It should allow user to select all type of files. ie.(.pdf,.doc)files I used UIDocumentPickerViewController method. my Code: UIDocumentPickerDelegate, UIDocumentMenuDelegate in my class declaration //upload file func OpenFile(){ let importMenu = UIDocumentMenuViewController(documentTypes: [String(kUTTypePNG),String(kUTTypeImage)], in: .import) importMenu.delegate = self importMenu.modalPresentationStyle = .fullScreen self.present(importMenu,