Lazy load pages in UIScrollView

Posted by jean on Stack Overflow See other posts from Stack Overflow or by jean
Published on 2010-04-03T20:27:02Z Indexed on 2010/04/03 20:33 UTC
Read the original article Hit count: 449

Filed under:
|

I have a UIScrollView that contains large images and am using paging to scroll between images. In order to save memory, I am loading only one image before and after the currently visible one and loading/releasing new images after a scroll has completed.

The problem occurs when one scrolls quickly and scrollViewDidEndDecelerating is not called.

How can I detect continuous scrolling?

I could check item location on every scrollViewDidScroll but this seems a bit heavy...

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa-touch