ios - Calling [UIImage imageWithData:xxx] multiple times -


my model comes core data. beans have images stored in model nsdata.

to display images, need :

[uiimage imagewithdata:bean.imagedata]  

is ok if everywhere ? mean, view #1 display image creating [uiimage imagewithdata:], go on view #2 need display same image, pass bean between 2 views, recreate uiimage [uiimage imagewithdata].

i wondering whether takes many cpu or memory if this... need manage cache myself ? think might quite common use case coredata there common pattern handle ?

imagewithdata not cache image (as per docs, uiimage method cache imagenamed)

here algorithm caching images, though.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -