<?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 for Inedible Blog</title>
	<atom:link href="http://www.inediblesoftware.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.inediblesoftware.com/blog</link>
	<description>this stuff is inedible</description>
	<lastBuildDate>Sat, 12 Dec 2009 21:41:07 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on iPhone Bootcamp SF by Jonathan Sarno</title>
		<link>http://www.inediblesoftware.com/blog/2009/12/06/iphone-bootcamp-sf/comment-page-1/#comment-146</link>
		<dc:creator>Jonathan Sarno</dc:creator>
		<pubDate>Sat, 12 Dec 2009 21:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.inediblesoftware.com/blog/?p=313#comment-146</guid>
		<description>Thanks again for teaching your excellent SDK course for the iPhone Boot Camp.</description>
		<content:encoded><![CDATA[<p>Thanks again for teaching your excellent SDK course for the iPhone Boot Camp.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on UIScrollView Paging Hack by RickiG</title>
		<link>http://www.inediblesoftware.com/blog/2009/04/05/uiscrollview-paging-hack/comment-page-1/#comment-145</link>
		<dc:creator>RickiG</dc:creator>
		<pubDate>Sat, 05 Dec 2009 21:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.inediblesoftware.com/blog/?p=124#comment-145</guid>
		<description>Hi
I just found this post and had to do something similar. My issue was that I would like to divide an entire page into X smaller pages but still have the snap effect. This works really well:

- (void)scrollViewDidEndDecelerating:(UIScrollView *)_scrollView {

	[self snapToPosition:_scrollView];
}
- (void)scrollViewDidEndDragging:(UIScrollView *)_scrollView willDecelerate:(BOOL)decelerate {
	
	[self snapToPosition:_scrollView];
}	

- (void) snapToPosition:(UIScrollView *)_scrollView {

	CGFloat itemWidth = 80.0f;
	CGFloat position = [_scrollView contentOffset].x;
	CGFloat newPosition = 0.0f;	
	CGFloat offSet = position / itemWidth;
	NSUInteger target = (NSUInteger)(offSet + 0.5f);
	
	newPosition = target * itemWidth;

	[_scrollView setContentOffset:CGPointMake(newPosition, 0.0f) animated:YES];
}

itemWidth is the size of the smaller subviews I build the content of the scrollView from.</description>
		<content:encoded><![CDATA[<p>Hi<br />
I just found this post and had to do something similar. My issue was that I would like to divide an entire page into X smaller pages but still have the snap effect. This works really well:</p>
<p>- (void)scrollViewDidEndDecelerating:(UIScrollView *)_scrollView {</p>
<p>	[self snapToPosition:_scrollView];<br />
}<br />
- (void)scrollViewDidEndDragging:(UIScrollView *)_scrollView willDecelerate:(BOOL)decelerate {</p>
<p>	[self snapToPosition:_scrollView];<br />
}	</p>
<p>- (void) snapToPosition:(UIScrollView *)_scrollView {</p>
<p>	CGFloat itemWidth = 80.0f;<br />
	CGFloat position = [_scrollView contentOffset].x;<br />
	CGFloat newPosition = 0.0f;<br />
	CGFloat offSet = position / itemWidth;<br />
	NSUInteger target = (NSUInteger)(offSet + 0.5f);</p>
<p>	newPosition = target * itemWidth;</p>
<p>	[_scrollView setContentOffset:CGPointMake(newPosition, 0.0f) animated:YES];<br />
}</p>
<p>itemWidth is the size of the smaller subviews I build the content of the scrollView from.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Overzealous iTunes Censorship by q</title>
		<link>http://www.inediblesoftware.com/blog/2009/07/25/overzealous-itunes-censorship/comment-page-1/#comment-137</link>
		<dc:creator>q</dc:creator>
		<pubDate>Sat, 29 Aug 2009 00:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.inediblesoftware.com/blog/?p=253#comment-137</guid>
		<description>haha! that&#039;s hilarious!</description>
		<content:encoded><![CDATA[<p>haha! that&#8217;s hilarious!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Shotgun Free Released! by josiah</title>
		<link>http://www.inediblesoftware.com/blog/2009/02/26/shotgun-free-released/comment-page-1/#comment-134</link>
		<dc:creator>josiah</dc:creator>
		<pubDate>Thu, 13 Aug 2009 22:27:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.inediblesoftware.com/blog/?p=26#comment-134</guid>
		<description>sry bout the air guitar (mistake)

id like the list of awards for the 1.5 version 
if you could send me them that be awsome

peace</description>
		<content:encoded><![CDATA[<p>sry bout the air guitar (mistake)</p>
<p>id like the list of awards for the 1.5 version<br />
if you could send me them that be awsome</p>
<p>peace</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Air Guitar Released! by josiah</title>
		<link>http://www.inediblesoftware.com/blog/2009/01/18/air-guitar-released/comment-page-1/#comment-133</link>
		<dc:creator>josiah</dc:creator>
		<pubDate>Thu, 13 Aug 2009 22:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.inediblesoftware.com/blog/?p=17#comment-133</guid>
		<description>id like a list of the awards on the 1.5 version if u could tell me that would be sweet

peace</description>
		<content:encoded><![CDATA[<p>id like a list of the awards on the 1.5 version if u could tell me that would be sweet</p>
<p>peace</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on UIScrollView Paging Hack by james</title>
		<link>http://www.inediblesoftware.com/blog/2009/04/05/uiscrollview-paging-hack/comment-page-1/#comment-128</link>
		<dc:creator>james</dc:creator>
		<pubDate>Thu, 23 Jul 2009 18:44:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.inediblesoftware.com/blog/?p=124#comment-128</guid>
		<description>jochen: When using a scrollview, you generally need to add some subviews that contain the actual content to be scrolled. Instead of putting those subviews in the scrollview directly, you should add them to what I&#039;m calling a container view, and then add the container view to the scrollview. If you&#039;re still confused, I&#039;d recommend checking out Apple&#039;s documentation on using scrollviews and make sure you&#039;re comfortable with their normal use before you try this technique.</description>
		<content:encoded><![CDATA[<p>jochen: When using a scrollview, you generally need to add some subviews that contain the actual content to be scrolled. Instead of putting those subviews in the scrollview directly, you should add them to what I&#8217;m calling a container view, and then add the container view to the scrollview. If you&#8217;re still confused, I&#8217;d recommend checking out Apple&#8217;s documentation on using scrollviews and make sure you&#8217;re comfortable with their normal use before you try this technique.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on UIScrollView Paging Hack by jochen</title>
		<link>http://www.inediblesoftware.com/blog/2009/04/05/uiscrollview-paging-hack/comment-page-1/#comment-127</link>
		<dc:creator>jochen</dc:creator>
		<pubDate>Thu, 23 Jul 2009 16:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.inediblesoftware.com/blog/?p=124#comment-127</guid>
		<description>can you please explain, how &quot;contentView&quot; in your example is created/used? It would be perfect, if you could provide a complete controller-code for this example...!

 best regards &amp; thanks</description>
		<content:encoded><![CDATA[<p>can you please explain, how &#8220;contentView&#8221; in your example is created/used? It would be perfect, if you could provide a complete controller-code for this example&#8230;!</p>
<p> best regards &amp; thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on No Sound by Thomas Bohan</title>
		<link>http://www.inediblesoftware.com/blog/2009/03/28/no-sound/comment-page-1/#comment-104</link>
		<dc:creator>Thomas Bohan</dc:creator>
		<pubDate>Tue, 07 Jul 2009 13:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.inediblesoftware.com/blog/?p=108#comment-104</guid>
		<description>Good article - I had the silent switch turned on - now fixed :-)</description>
		<content:encoded><![CDATA[<p>Good article &#8211; I had the silent switch turned on &#8211; now fixed :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Shotgun Pro Released! by eddie</title>
		<link>http://www.inediblesoftware.com/blog/2009/03/10/shotgun-pro-released/comment-page-1/#comment-97</link>
		<dc:creator>eddie</dc:creator>
		<pubDate>Thu, 25 Jun 2009 23:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.inediblesoftware.com/blog/?p=96#comment-97</guid>
		<description>Gary:

Thanks for writing in. A number of people have had sound problems, so eventually I decided to write a blog post with the three most common reasons and fixes. Check it out at http://www.inediblesoftware.com/blog/2009/03/28/no-sound/

If that doesn&#039;t fix your problem, tell me and I&#039;ll try to work with you on a fix.</description>
		<content:encoded><![CDATA[<p>Gary:</p>
<p>Thanks for writing in. A number of people have had sound problems, so eventually I decided to write a blog post with the three most common reasons and fixes. Check it out at <a href="http://www.inediblesoftware.com/blog/2009/03/28/no-sound/" rel="nofollow">http://www.inediblesoftware.com/blog/2009/03/28/no-sound/</a></p>
<p>If that doesn&#8217;t fix your problem, tell me and I&#8217;ll try to work with you on a fix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on POW Released! by America</title>
		<link>http://www.inediblesoftware.com/blog/2009/06/17/pow-released/comment-page-1/#comment-96</link>
		<dc:creator>America</dc:creator>
		<pubDate>Thu, 25 Jun 2009 23:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.inediblesoftware.com/blog/?p=173#comment-96</guid>
		<description>F*ck Yea!
America! 
F*ck Yea!!!!
Absurd</description>
		<content:encoded><![CDATA[<p>F*ck Yea!<br />
America!<br />
F*ck Yea!!!!<br />
Absurd</p>
]]></content:encoded>
	</item>
</channel>
</rss>
