How to scroll and zoom in/out large images on iPhone?
        Posted  
        
            by Horace Ho
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Horace Ho
        
        
        
        Published on 2010-04-28T01:46:59Z
        Indexed on 
            2010/04/28
            1:53 UTC
        
        
        Read the original article
        Hit count: 357
        
I have a large image, size around 30000 (w) x 6000 (h) pixels. You may consider it's like a big map. I assume I need to crop it up into smaller tiles. Questions:
- what are the right 
ViewControllersto use? - (link) what is the tile strategy? (I put this in another question, as it's not iPhone specific)
 
Requirements:
- whole image (though cropped) can be scrolled up/down/left/right by swipes
 - zoom in (up to pixel-to-pixel) out (down to screen-fit-by-height) by the 2-finger operation
 - memory efficiency by lazy loading tiles
 
Bonus requirements:
- automatic scroll, say from left to right slowly and smoothly
 
Thanks!
© Stack Overflow or respective owner