UIImageWriteToSavedPhotosAlbum won't work with selector

I have a very simple code:

UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:), nil);

and

- (void)image:(UIImage *)image
didFinishSavingWithError:(NSError *)error
contextInfo:(void *)contextInfo
{
...
}

For some reason it's failing with EXC BADACCESS error on
#0 0x30310d18 in +[NSInvocation invocationWithMethodSignature:]
#1 0x30f77250 in -[MLPhotoDCFFileGroup(CameraAdditions) writeJPEGFinished:]
#2 0x30311af8 in -[NSObject performSelector:withObject:]

It works without selector
Is the prototype wrong ?

Message was edited by: henson2k

Message was edited by: henson2k

Mac, Windows Vista

Posted on May 15, 2008 8:58 PM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

UIImageWriteToSavedPhotosAlbum won't work with selector

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.