我已从此
中选择了UIImage
-(void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
但我仍然无法弄清楚如何将UIImage
对象移交给照片应用进行编辑?
任何建议?
答案 0 :(得分:0)
您可以在其他视图控制器上使用新的UIImageView,并使用prepareForSegue方法传递此图像。
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if([segue.identifier isEqualToString:@"editphoto"])
{
YourNextViewController*editImageView=segue.destinationViewController;
UIImage*clickedImage=capturedPicImageView.image;
editImageView.passedImage=clickedImage;
// NSLog(@"%@",editView.editPhotoImgView.image);
}
}
(And in YourNextViewController create UIImage*clickedImage and give property to it. and dont forget to allocate in viewDidLoad. Hope this helps.