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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -