I am wondering under what circumstances this code breaks into second . In other words, when does it -[UIImage CGImage]return nil? The documentation here is not very important.
- (void)setImage:(UIImage *)anImage {
assert(anImage);
CGImageRef cgimage = anImage.CGImage;
assert(cgimage);
}
I'm sure UIImage is correct, as it came from a suite of applications. So far, I have not been able to reproduce this case, but I see some reports of user crashes.
source
share