uitableview - Image caching in iOS -


if

rowbackground = [[uiimageview alloc]initwithimage:[uiimage imagenamed:@"bottomcell2.png"]  

the image cached entire life cycle of app or reloaded , recached everytime execute instruction (in other views or part of app)?

i in every tableview of app. efficient?

thanks in advance!

as reference of +imagenamed::

this method looks in system caches image object specified name , returns object if exists. if matching image object not in cache, method loads image data specified file, caches it, , returns resulting object.

cache efficient, eats memory. if table view contains large amount of images, memory may burn up. may consider +imagewithcontentsoffile: or other similar methods load image.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -