I have a scrollview that I add maybe 400 thumbnails to. I profile it in instruments and watch the memory livebytes go up to about 70MB. Then I removefromsuperview all of them and the live bytes stays the same.
Need to recover this memory. What’s the trick?
Thanks.
I think this is a similar question: Problem dealloc'ing memory used by UIImageViews with fairly large image in an UIScrollView
I’ve had similar issues before. One solution appears to be to set the UIImageView image to nil before final release, per an answer in this question: confusing memory allocation error on iPhone