我ELCImagePickerController
用来选择多张照片。但是,当我选择照片并单击完成按钮时,它会返回选择相册页面。请帮助我,所以当我选择照片时它应该返回viewController
。
这是我使用的代码:
var picker = ELCImagePickerController(imagePicker: ())
@IBAction func ButtonIsclick(sender: AnyObject) {
picker.delegate = self
self.presentViewController(picker, animated: true, completion: nil)
}
func elcImagePickerController(picker: ELCImagePickerController!, didFinishPickingMediaWithInfo info:[AnyObject]!) {
self.dismissViewControllerAnimated(true, completion: nil)
}
func elcImagePickerControllerDidCancel(picker: ELCImagePickerController!){
self.dismissViewControllerAnimated(true, completion: nil)
}
编辑:当我调试代码时它从不调用didFinishPickingMediaWithInfo
函数