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
Post a Comment