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
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