This is my first iOS application. Swift 3 is used. I am using ELCImagePickerController
to select multiple images. My code successfully opens library and I can select multiple images. However, on Cancel or finish selecting, nothing happened and no dismissal occur to the albums. My code below:
override func viewDidLoad() {
super.viewDidLoad(
imagePicker.delegate = self
}
func elcimagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
self.dismiss(animated: true, completion: nil)
}
func elcimagePickerControllerDidCancel(picker: UIImagePickerController) { dismiss(animated: true, completion: nil)
}
Please let me know what I am doing wrong.