Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top