I have a project where I am asynchronously loading images from my site. All was working fine, until I started doing a gallery view for the app, when I noticed that the memory usage went through the roof when I add a bunch of small images.
I was trying storing images on file and also in memory with no change.
Typically, the app bumbles along for c.2Mb until I hit the gallery page, when it shoots up to 5Mb and then up to 10Mb on the gallery detail page.
The weird thing is that when I add the images on the 5Mb-10Mb jump I am adding just 3 images of c.130Kb
Also, when I comment out the line
Code:
[self addSubview:async_imageView];
Memory stays low. So, it is not the getting the image and storing it in a finite cache that is causing the image, but rather displaying it in the view: Everything is released where it should be and I can't see where I can alter the code to avoid memory issues.
Anyone have any suggestions as to what I might try next?
Many thanks.