0

lets say I have a CGImage and want to store it in the Photos app that comes standard with every iPod Touch/iPhone how would I do this?

1 Answers1

0

First convert the CGImage to a UIImage:

UIImage *_myImage = [UIImage imageWithCGImage:cgImage];

And then use the UIImageWriteToSavedPhotosAlbum() function:

UIImageWriteToSavedPhotosAlbum(UIImage *image, id completionTarget, SEL completionSelector, void *contextInfo);

to write the UIImage to the Photo Album.

Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345