库链接:https://github.com/yackle/CLImageEditor
使用相机拍摄照片并使用照片通过CLImageEditor
自定义库进行编辑。在库中打开图像后,返回相机视图,Retake
和Use photo
按钮不起作用。
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
imageInfo = [[NSDictionary alloc] initWithDictionary:info];
UIImage *a_img = [info objectForKey:UIImagePickerControllerOriginalImage];
CLImageEditor *editor = [[CLImageEditor alloc] initWithImage:a_img];
editor.delegate = self;
[picker pushViewController:editor animated:YES];
}
STEPS:
Use photo
按钮,在此单击上面的方法正在调用并推动CLImageEditor
控制器以修改图像。Retake
或Use photo
按钮以拍摄新照片或再次编辑现有照片Not working
答案 0 :(得分:0)
图书馆链接:https://github.com/yackle/CLImageEditor
在这个 imagepicker 中确实取消了方法
func imagePickerControllerDidCancel(_ picker:
UIImagePickerController) {
let editor = CLImageEditor()
editor.dismiss(animated: true, completion: nil)
picker.dismiss(animated: true, completion: nil)
}