Re: [iPhone] -UIScrollView
Re: [iPhone] -UIScrollView
- Subject: Re: [iPhone] -UIScrollView
- From: Henry McGilton <email@hidden>
- Date: Mon, 7 Jun 2010 20:19:19 -0400
On Jun 1, 2010, at 9:18 PM, Hank Heijink (Mailinglists) wrote:
> 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).
Also take a look at OpenFlow.
http://apparentlogic.com/openflow/
While it's doing a Cover Flow kind of task, it's based on a Scroll View, and it's doing some
memory management kinds of stuff for you to address the issue you have posted about.
Cheers,
. . . . . . . . Henry
_______________________________________________
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