I am using this code:
UIImageWriteToSavedPhotosAlbum(_curView.image, self,@selector(image:didFinishSavingWithError:contextInfo:), nil);
to save the images to the album. Whenever my device's memory is full, I am using this selector:
-(void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
but it didn't identify the error, in fact, error
is nil.
When the error occurs my device's memory is full.
How can I detect if the memory is available or not?