[英]Camera " Retake " and " Use photo " buttons not working
Library link : https://github.com/yackle/CLImageEditor库链接: https : //github.com/yackle/CLImageEditor
Using camera take a photo and use photo to editing using CLImageEditor
custom library.使用相机拍照并使用照片使用
CLImageEditor
自定义库进行编辑。 After open image in library back to camera view Retake
and Use photo
buttons not working.在库回相机视图中打开图像后
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
button, on this click above method is calling and push CLImageEditor
controller to modification of image.Use photo
按钮,点击上面的方法调用并推送CLImageEditor
控制器来修改图像。Retake
or Use photo
buttons to take new photo or editing existing photo again Not working
Retake
或Use photo
按钮拍摄新照片或再次编辑现有照片Not working
Library link : https://github.com/yackle/CLImageEditor库链接: https : //github.com/yackle/CLImageEditor
in this imagepicker did cancel method right在这个 imagepicker 中确实取消了方法
func imagePickerControllerDidCancel(_ picker:
UIImagePickerController) {
let editor = CLImageEditor()
editor.dismiss(animated: true, completion: nil)
picker.dismiss(animated: true, completion: nil)
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.