1

サンプルコード:

 self.library = [[ALAssetsLibrary alloc] init];
        self.imageEditor = [[DemoImageEditor alloc] initWithNibName:@"DemoImageEditor" bundle:nil withSize:CGSizeMake(398, 508)];

        self.imageEditor.doneCallback = ^(UIImage *editedImage, BOOL canceled){
            if(!canceled) {
                [popoverController dismissPopoverAnimated:YES];                    photoImg.image = editedImage;
                //[UIImage imageWithCGImage:CGImageCreateWithImageInRect([editedImage CGImage], CGRectMake(0, 0, 398, 508))];
            }
            [imagePicker popToRootViewControllerAnimated:YES];
            [imagePicker setNavigationBarHidden:NO animated:YES];
        };

警告:

 [popoverController dismissPopoverAnimated:YES];capturing 'self' strongly in this block is likely to lead to a retain cycle
4

0 に答える 0