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