简体   繁体   English

相机“重拍”和“使用照片”按钮不起作用

[英]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.在库回相机视图中打开图像后RetakeUse 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:脚步:

  1. Click on camera button to update profile picture.单击相机按钮以更新个人资料图片。
  2. Take a photo and click on Use photo button, on this click above method is calling and push CLImageEditor controller to modification of image.拍照并点击Use photo按钮,点击上面的方法调用并推送CLImageEditor控制器来修改图像。
  3. Without modification click on back button (It's pop to camera view).没有修改点击后退按钮(它弹出到相机视图)。
  4. Now on click Retake or Use photo buttons to take new photo or editing existing photo again Not working现在单击RetakeUse 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.

相关问题 如何在不移动使用照片和在iOS中重拍的情况下应用相机功能? - How to apply camera feature without moving to use photo and retake in iOS? 从相机拍摄照片后如何跳过“重新使用”选项 - How to skip 'retake and use' option after captureing photo from camera UIImagePickerController 使用照片/重拍按钮不起作用 - UIImagePickerController Use Photo / Retake buttons don't work UIImagePickerController在UpperCase Letters“USE_PHOTO”,“RETAKE”和Gallery Images“CAMERA_ROLL”中显示文本? - UIImagePickerController shows text in UpperCase Letters “USE_PHOTO” , “RETAKE” and Gallery Images “CAMERA_ROLL”? Swift:如何更改UIImagePickerController的“使用照片”,“取消”,“拍摄”,“重拍”按钮的默认行为 - Swift: how to change default behaviour of buttons “Use Photo”, “Cancel”, “Shoot”, “Retake” of UIImagePickerController 带有覆盖的iOS 7 UIImagePickerController - 重新拍摄并使用不可用的照片 - iOS 7 UIImagePickerController with Overlay - retake and use photo not usable 为什么Camera API仅使用英语? (“取消”,“自动”,“重新拍摄”,“使用”按钮;以及“移动和缩放”标签。) - Why is the Camera API only in English? (The “Cancel”, “Auto”, “Retake”, “Use” buttons; and “Move and Scale” label.) 在iOS应用中拍照后是否可以避免“使用”/“重拍”屏幕? - Is it possible to avoid the “use”/“retake” screen after taking a photo in an iOS app? 使用UIImagePickerController自定义“使用”,“取消”,“重拍”和“倒车”按钮事件 - Custom “Use”, “Cancel”,“Retake” and “Reverse Camera” button event using UIImagePickerController 使用照片和摄像机? - Use photo and video camera?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM