如何在将其保存到IOS中的库中之前裁剪捕获的图像

问题描述:

我正在开发相机应用程序。我正在使用UIImagePickerController捕获图像。之后将其保存在库中我想裁剪图像并需要将裁剪后的图像保存到图库中。

I am working on camera app. I am capturing an image by using UIImagePickerController.After that before saving it in gallery I want to crop the image and need to save the cropped image in gallery.

我搜索了谷歌,我发现样品从画廊中挑选图像,然后裁剪,这不是我的要求。可以任何身体已经工作了吗???如果您已完成任何教程/示例代码,请发布链接。提前谢谢

I searched on google ,I found samples to pick the images from gallery and then cropping which is not my requirement.Could any body have worked on this??? If you have gone through any tutorials/sample code please post the links.Thanks in advance

pust isallowediting = yes;对于选择器,我们可以编辑您从图库中捕获并选择的图像

pust isallowediting=yes; for picker so that we can edit image which you captured and selected from gallery also

UIImagePickerController *picker = [[UIImagePickerController alloc] init];
    picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
    picker.delegate = self;
    picker.isallowediting = yes;  

希望这些能帮到你