ios - When is it appropriate to release CGImageRef? -


when xcode analyzes code, finds potential memory leaks. use arc, learned arc doesn't handle c types. since use cgimageref in order create uiimage , assign uiimageview.image property, when appropriate release cgimageref? can release right after create new uiimage it? if release cgimageref, make uiimage instance invalid?

uiimageview retains image property (if needs it) or copies - whatever. once have set property, can release cgimageref.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -