Re: [iPhone] -UIScrollView
Re: [iPhone] -UIScrollView
- Subject: Re: [iPhone] -UIScrollView
- From: "Hank Heijink (Mailinglists)" <email@hidden>
- Date: Tue, 1 Jun 2010 21:18:30 -0400
On Jun 1, 2010, at 5:09 PM, Fritz Anderson wrote:
> On 31 May 2010, at 11: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?
>
> I admit that every problem looks like a UITableView to me, but it is a solution to the problem of stacking views vertically in a scroll view and loading those views only when they are visible.
Couldn't agree more. If the OP is talking about horizontally stacking the views, look at Apple's PageControl sample code. It lazily loads the view controllers it needs. Whenever you have a case like that, you're basically reimplementing UITableView (probably not all of its functionality though).
Hank
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden