允许用户编辑 UIImage
我让用户使用 UIImagePickerController 选择图像。 生成的图像显示在 UIImageView 中。
图像下方有一个 UIButton,标题为“编辑图像”。
我的问题是,如何或在哪里呈现模式视图控制器以允许用户编辑图像?
此代码允许用户编辑她/他选择的图像...
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.allowsEditing = YES;
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentModalViewController:imagePicker animated:YES];
...但我希望用户也能够在她/他选择该图像后编辑该图像。
我该怎么做呢?
也许是这样的屏幕:
I have let the user select an image using UIImagePickerController.
The resulting image is shown in a UIImageView.
There is a UIButton below the image with the title "Edit Image".
My question is, How or to where to i present modal view controller to allow the user to edit the image?
This code allows the user to edit the image s/he has chosen...
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.allowsEditing = YES;
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentModalViewController:imagePicker animated:YES];
... but i want the user to be able to edit this image after s/he has picked it as well.
How would i go about doing this?
Perhaps a screen like this:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论