Ios UIImagePicker不允许编辑图像

Ios UIImagePicker不允许编辑图像,ios,merge,camera,uiimagepickercontroller,Ios,Merge,Camera,Uiimagepickercontroller,我正在尝试使用UIImagePicker编辑图像,代码运行良好,但不允许编辑,以下是我的代码: 在myFile.h @interface MyCameraPickerController : UIViewController <UIImagePickerControllerDelegate, UINavigationControllerDelegate> { UIImageView * imageView; UIButton * choosePhotoBtn;

我正在尝试使用UIImagePicker编辑图像,代码运行良好,但不允许编辑,以下是我的代码:

myFile.h

@interface MyCameraPickerController : UIViewController <UIImagePickerControllerDelegate, UINavigationControllerDelegate> {

    UIImageView * imageView;
    UIButton * choosePhotoBtn;
    UIButton * takePhotoBtn;
}

@property (nonatomic, strong) IBOutlet UIImageView * imageView;
@property (nonatomic, strong) IBOutlet UIButton * choosePhotoBtn;
@property (nonatomic, strong) IBOutlet UIButton * takePhotoBtn;

-(IBAction) getPhoto:(id) sender;
在完成这项工作后,我合并了两个图像,并且在这里工作得非常好。如果有人能提供帮助,请参阅代码;):


我看到我的图像,我可以教一张照片,但我不能编辑这个,有人知道吗?谢谢。

如果您想要的是内置的
UIImagePickerController
来允许编辑所选图像,只需建立
allowsEditing
属性:

picker.allowsEditing = YES;
稍后,您可以像这样检索它:

[info objectForKey:UIImagePickerControllerEditedImage];

你说的编辑是什么意思?UIImagePickerController允许您移动和缩放?是的,我将尝试缩放和裁剪图像,然后您可以尝试“picker.allowsEditing=true”非常好!!!如果你想公布答案,我投票给你正确答案
picker.allowsEditing = YES;
[info objectForKey:UIImagePickerControllerEditedImage];