图书馆链接: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];
}步骤:
Use photo按钮,在这个点击上面的方法是调用并推动CLImageEditor控制器对图像进行修改。Retake或Use photo按钮拍摄新照片或重新编辑现有照片Not working发布于 2021-01-05 13:26:23
库链接: https://github.com/yackle/CLImageEditor
在此图像处理程序中取消了正确的方法
func imagePickerControllerDidCancel(_ picker:
UIImagePickerController) {
let editor = CLImageEditor()
editor.dismiss(animated: true, completion: nil)
picker.dismiss(animated: true, completion: nil)
}https://stackoverflow.com/questions/53921364
复制相似问题