Unload image of UIImageView thats offscreen

Posted by ludo on Stack Overflow See other posts from Stack Overflow or by ludo
Published on 2010-06-08T05:22:26Z Indexed on 2010/06/08 5:32 UTC
Read the original article Hit count: 523

Hi,

I'm coding an application on Ipad, in a certain point of my application I present a ViewController with the presentModalViewController.

My ViewController is a UISScrollView who take the larger of the modalView and inside it I display some images, I allow pagingEnabled so I can see all my images inside the scrollView.

Sometimes I have to display more than 10 images inside the scrollView, so I have this error RECEIVE MEMORY WARNING LEVEL=1 after this one RECEIVE MEMORY WARNING LEVEL=2 and finnaly the debugger exited due to signal 10 (Sigbus).

What can I do? is there a way to unload the image thats offscreen? or others things to do?

Thanks,

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about memory-management