<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: UIScrollView and Memory Allocations</title>
	<atom:link href="http://www.goodhustle.com/blog/2010/04/uiscrollview-and-memory-allocations/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.goodhustle.com/blog/2010/04/uiscrollview-and-memory-allocations/</link>
	<description>The Goodhustle Studios Blog</description>
	<lastBuildDate>Fri, 25 Feb 2011 09:01:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: blueshick</title>
		<link>http://www.goodhustle.com/blog/2010/04/uiscrollview-and-memory-allocations/comment-page-1/#comment-1282</link>
		<dc:creator>blueshick</dc:creator>
		<pubDate>Fri, 25 Feb 2011 09:01:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.goodhustle.com/blog/?p=44#comment-1282</guid>
		<description>TQ for sharing this.. its great but i still can&#039;t follow seem there was too much new variable you added and they are not in the apple&#039;s pagecontrol example..</description>
		<content:encoded><![CDATA[<p>TQ for sharing this.. its great but i still can&#8217;t follow seem there was too much new variable you added and they are not in the apple&#8217;s pagecontrol example..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Praveen</title>
		<link>http://www.goodhustle.com/blog/2010/04/uiscrollview-and-memory-allocations/comment-page-1/#comment-1252</link>
		<dc:creator>Praveen</dc:creator>
		<pubDate>Sat, 19 Feb 2011 08:40:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.goodhustle.com/blog/?p=44#comment-1252</guid>
		<description>Hey Can you post your project here as it would really help me out in figuring out the pagecontrol unloading?

I have a big project to implement based on it</description>
		<content:encoded><![CDATA[<p>Hey Can you post your project here as it would really help me out in figuring out the pagecontrol unloading?</p>
<p>I have a big project to implement based on it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bri</title>
		<link>http://www.goodhustle.com/blog/2010/04/uiscrollview-and-memory-allocations/comment-page-1/#comment-587</link>
		<dc:creator>bri</dc:creator>
		<pubDate>Sun, 07 Nov 2010 05:04:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.goodhustle.com/blog/?p=44#comment-587</guid>
		<description>Hi, does anyone have a sample project for this??

it would be really really appreciated!!

thanks</description>
		<content:encoded><![CDATA[<p>Hi, does anyone have a sample project for this??</p>
<p>it would be really really appreciated!!</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fatso</title>
		<link>http://www.goodhustle.com/blog/2010/04/uiscrollview-and-memory-allocations/comment-page-1/#comment-556</link>
		<dc:creator>Fatso</dc:creator>
		<pubDate>Sat, 30 Oct 2010 03:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.goodhustle.com/blog/?p=44#comment-556</guid>
		<description>good tutorial thx, just have 1 question regards of the code below

[controllerToDelete.view removeFromSuperview];

[viewControllers replaceObjectAtIndex:page withObject:[NSNull null]]; 

i Manage to release it from the superview, but when it execute the replace object with NSNull, it crash my application, im still trying to find out what is the issue. 

thx in advance and look forward for ur comment</description>
		<content:encoded><![CDATA[<p>good tutorial thx, just have 1 question regards of the code below</p>
<p>[controllerToDelete.view removeFromSuperview];</p>
<p>[viewControllers replaceObjectAtIndex:page withObject:[NSNull null]]; </p>
<p>i Manage to release it from the superview, but when it execute the replace object with NSNull, it crash my application, im still trying to find out what is the issue. </p>
<p>thx in advance and look forward for ur comment</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gordon</title>
		<link>http://www.goodhustle.com/blog/2010/04/uiscrollview-and-memory-allocations/comment-page-1/#comment-536</link>
		<dc:creator>Gordon</dc:creator>
		<pubDate>Mon, 25 Oct 2010 18:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.goodhustle.com/blog/?p=44#comment-536</guid>
		<description>@Mike, judging from the selectors in your comment, it looks like you might be confused. You&#039;re not loading scrollviews, you&#039;re loading pages within the scrollviews. In my post, I discuss unloading pages when deceleration ends as well as when scrolling takes us past the boundary of loaded pages. This eliminates hitching during normal use, but doesn&#039;t try to avoid it if we&#039;re scrolling in a direction faster than we can read the content.</description>
		<content:encoded><![CDATA[<p>@Mike, judging from the selectors in your comment, it looks like you might be confused. You&#8217;re not loading scrollviews, you&#8217;re loading pages within the scrollviews. In my post, I discuss unloading pages when deceleration ends as well as when scrolling takes us past the boundary of loaded pages. This eliminates hitching during normal use, but doesn&#8217;t try to avoid it if we&#8217;re scrolling in a direction faster than we can read the content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.goodhustle.com/blog/2010/04/uiscrollview-and-memory-allocations/comment-page-1/#comment-527</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 23 Oct 2010 21:08:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.goodhustle.com/blog/?p=44#comment-527</guid>
		<description>Hi,

Thanks for the post, I&#039;m having the exact same issues. Would you mind specifying where you call &quot;unloadPage&quot; from, and what logic you&#039;re using to determine wich pages are out of bounds? I tried doing it like this, but ended up getting some &quot;you sent a message to a deallocated object&quot; errors..

(inside scrollViewDidScroll)

    [self loadScrollViewWithPage:page - 1];
    [self loadScrollViewWithPage:page];
    [self loadScrollViewWithPage:page + 1];
	
    [self unloadScrollViewWithPage:page -2];
    [self unloadScrollViewWithPage:page +2];</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the post, I&#8217;m having the exact same issues. Would you mind specifying where you call &#8220;unloadPage&#8221; from, and what logic you&#8217;re using to determine wich pages are out of bounds? I tried doing it like this, but ended up getting some &#8220;you sent a message to a deallocated object&#8221; errors..</p>
<p>(inside scrollViewDidScroll)</p>
<p>    [self loadScrollViewWithPage:page - 1];<br />
    [self loadScrollViewWithPage:page];<br />
    [self loadScrollViewWithPage:page + 1];</p>
<p>    [self unloadScrollViewWithPage:page -2];<br />
    [self unloadScrollViewWithPage:page +2];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gordon</title>
		<link>http://www.goodhustle.com/blog/2010/04/uiscrollview-and-memory-allocations/comment-page-1/#comment-507</link>
		<dc:creator>Gordon</dc:creator>
		<pubDate>Tue, 19 Oct 2010 15:14:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.goodhustle.com/blog/?p=44#comment-507</guid>
		<description>@Evan, you have some sort of view controller, yes? So what you need to do is still the same - remove it from the superview and also remove it from the viewControllers array.</description>
		<content:encoded><![CDATA[<p>@Evan, you have some sort of view controller, yes? So what you need to do is still the same &#8211; remove it from the superview and also remove it from the viewControllers array.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan</title>
		<link>http://www.goodhustle.com/blog/2010/04/uiscrollview-and-memory-allocations/comment-page-1/#comment-456</link>
		<dc:creator>Evan</dc:creator>
		<pubDate>Mon, 04 Oct 2010 13:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.goodhustle.com/blog/?p=44#comment-456</guid>
		<description>This is exactly what I was looking for. One hitch - I do not have an ItemViewController in my use of the PageControl example. I just need to remove from the existing viewcontrollers array in the original.What do you suggest?</description>
		<content:encoded><![CDATA[<p>This is exactly what I was looking for. One hitch &#8211; I do not have an ItemViewController in my use of the PageControl example. I just need to remove from the existing viewcontrollers array in the original.What do you suggest?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gordon</title>
		<link>http://www.goodhustle.com/blog/2010/04/uiscrollview-and-memory-allocations/comment-page-1/#comment-450</link>
		<dc:creator>Gordon</dc:creator>
		<pubDate>Sun, 03 Oct 2010 19:12:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.goodhustle.com/blog/?p=44#comment-450</guid>
		<description>@Vibhor: That&#039;s interesting, are you seeing a hitch when you scroll one page at a time, or if you scroll quickly? As I mentioned in the post, this technique is meant for interfaces where the user flips pages one at a time. If you load pages on the beginning of scroll dragging, you might end up with a little bit of lag on the beginning, but it will also end up running out of pages one page earlier than if you do it at the end of decelerating.</description>
		<content:encoded><![CDATA[<p>@Vibhor: That&#8217;s interesting, are you seeing a hitch when you scroll one page at a time, or if you scroll quickly? As I mentioned in the post, this technique is meant for interfaces where the user flips pages one at a time. If you load pages on the beginning of scroll dragging, you might end up with a little bit of lag on the beginning, but it will also end up running out of pages one page earlier than if you do it at the end of decelerating.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vibhor Goyal</title>
		<link>http://www.goodhustle.com/blog/2010/04/uiscrollview-and-memory-allocations/comment-page-1/#comment-446</link>
		<dc:creator>Vibhor Goyal</dc:creator>
		<pubDate>Sat, 02 Oct 2010 22:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.goodhustle.com/blog/?p=44#comment-446</guid>
		<description>Putting the following in the scrollViewWillBeginDragging instead of scrollViewDidEndDecelerating seems to work better for me, but I am not sure if that is correct:

[self loadSurroundingPagesForPage:pageControl.currentPage];</description>
		<content:encoded><![CDATA[<p>Putting the following in the scrollViewWillBeginDragging instead of scrollViewDidEndDecelerating seems to work better for me, but I am not sure if that is correct:</p>
<p>[self loadSurroundingPagesForPage:pageControl.currentPage];</p>
]]></content:encoded>
	</item>
</channel>
</rss>

