iphone - -[UIImage CGImage] returning nil -
i'm wondering under circumstances code breaks in second assert. in other words, when can -[uiimage cgimage]
return nil
? documentation isn't telling here.
- (void)setimage:(uiimage *)animage { assert(animage); cgimageref cgimage = animage.cgimage; assert(cgimage); }
i'm pretty sure, uiimage correct since it's fetched app bundle. far haven't been able reproduce case see user crash reports.
another possibility have multiple threads accessing same uiimage object @ same time; happening in code same symptom.
that might explain sporadic crash reports, too, since access patterns depend on timing changes run run.
Comments
Post a Comment