This is exactly what UIScrollView was intended for in Paging mode, and the 
documentation explains how to do this with a minimum of 2 or 3 views (I can't 
remember which I decided on, 2 will work, but 3 is smoother).

I'm unsure of the restraints on loading single pages of PDF files, so that 
might be an issue, but display wise, you don't need to (nor should you) make 
all the views at once and stick them in a scroll view.


On May 31, 2010, at 9:58 PM, Development wrote:

> I have a Scroll view that contains a master view. This master view adds page 
> sized views of image data, specifically PDF data. The problem that I am 
> having is that if I load all these pages at once, I run out of memory and the 
> app quits. So I was hoping there was a way to make it so that the images are 
> only drawn if they are in the scroll view's visible region. Secondly is Core 
> graphics the best way to be doing 
> this?_______________________________________________

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to