imagePickerController失效解决方案!亲测有效
当我们的swift版本升到4.2之后,imagePickerController的这个代理就失效了,处理方法是将如下的代理
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any])
替换成如下代理:
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]){
}
完美解决!