Dynamically loading hi-res images into UIScrollView

Posted by Jeff on Stack Overflow See other posts from Stack Overflow or by Jeff
Published on 2010-05-22T18:07:17Z Indexed on 2010/05/22 18:10 UTC
Read the original article Hit count: 350

Filed under:
|
|
|

I've been looking into creating a gallery mode in my application. The functionality will be identical to the built in Photos App.

Here's the flow: 1. You touch on a thumbnail and ... 2. a modal view displays a large detail version of the image 3. You have the ability to scroll horizontally through all the images in the gallery while in this modal view

I'm stuck on step 3.

How do I dynamically load hi res images into a scroll view? I understand I need to set the contentSize for the the scrollView but how do I do that when I've only selected and loaded one image? What delegate methods do I need to implement and what does the heavy lifting look like?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uikit