iphone - uiimage allocation problem -


i have 3 uiimages in uiscrollview , initializing these images in following way:

uiimage *dimage = [[uiimage alloc] initwithdata:data]; 

where data nsdata gotten url request. after caching images. when check memory allocation 3 images takes 472 kb each , allocation has been requested "img_data_lock" coregraphics library. when check size of image on disk cache 230kb each.

i dont know how can take more space. hope question clear.

not sure "disk cache" you're looking @ memory , disk usage weakly related. data used create uiimage part of data object uses. means active object can use more memory data created it.

to further complicate things, uiimage purge of image data under low memory situations size of uiimage object can vary on course of existence.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -