我可以将UIImage移交给Native Photos应用程序进行照片编辑吗?

时间:2014-07-23 13:08:54

标签: ios ios8

我已从此

中选择了UIImage
-(void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info

但我仍然无法弄清楚如何将UIImage对象移交给照片应用进行编辑?

任何建议?

1 个答案:

答案 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.