Anytime I import a document via UIDocumentPickerViewController
, I see a message logged to the console:
TestApp[66587:1550086] plugin com.apple.UIKit.fileprovider.default invalidated
Does this mean theres something wrong with my code? Or is this just an expected warning? Is there anyway to suppress it?
@IBAction func attachFile(sender: UIButton) {
let documentPicker = UIDocumentPickerViewController(documentTypes: ["public.image"], inMode: .Import)
documentPicker.delegate = self
self.presentViewController(documentPicker, animated: true, completion: nil)
}
func documentPicker(controller: UIDocumentPickerViewController, didPickDocumentAtURL url: NSURL) {
}
I am using xcode 8.3.2 and swift 3.0...Here is my code...it is working well..just call openDocumentPicker() i hope it helps you