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

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -