<?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: Drawing Rounded Rectangles</title>
	<atom:link href="http://www.cocoanetics.com/2010/02/drawing-rounded-rectangles/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cocoanetics.com/2010/02/drawing-rounded-rectangles/</link>
	<description>Our DNA is written in Objective-C</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:17:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Drops</title>
		<link>http://www.cocoanetics.com/2010/02/drawing-rounded-rectangles/#comment-3768</link>
		<dc:creator>Drops</dc:creator>
		<pubDate>Wed, 09 Nov 2011 12:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=1963#comment-3768</guid>
		<description>Thanks for your easier solution. I think my post was from a time when UIBezierPath was not yet available.</description>
		<content:encoded><![CDATA[<p>Thanks for your easier solution. I think my post was from a time when UIBezierPath was not yet available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trumi</title>
		<link>http://www.cocoanetics.com/2010/02/drawing-rounded-rectangles/#comment-3766</link>
		<dc:creator>trumi</dc:creator>
		<pubDate>Tue, 08 Nov 2011 10:55:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=1963#comment-3766</guid>
		<description>Hi,

great article. But there is a much easier way to achieve the same result. You can use UIBezierPath.
So for the above example you can just do the following:


- (void) drawRect:(CGRect)rect
{
	CGRect frame = self.bounds;
    
        UIBezierPath* path = [UIBezierPath bezierPathWithRoundedRect:frame cornerRadius:5.0];
    
	[[UIColor blueColor] setFill];
	[path fill];
}


It&#039;s less code, you do not have to care about releasing the path because this is all handled by the UIBezierPath and you can reuse it as it automatically saves the graphics context for you. For more details see the UIBezierPath reference.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>great article. But there is a much easier way to achieve the same result. You can use UIBezierPath.<br />
So for the above example you can just do the following:</p>
<p>- (void) drawRect:(CGRect)rect<br />
{<br />
	CGRect frame = self.bounds;</p>
<p>        UIBezierPath* path = [UIBezierPath bezierPathWithRoundedRect:frame cornerRadius:5.0];</p>
<p>	[[UIColor blueColor] setFill];<br />
	[path fill];<br />
}</p>
<p>It&#8217;s less code, you do not have to care about releasing the path because this is all handled by the UIBezierPath and you can reuse it as it automatically saves the graphics context for you. For more details see the UIBezierPath reference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Draw Circle Triangle and Rectangle in iPad &#8211; Drawing Rounded Rectangles &#124; Advanced App Development</title>
		<link>http://www.cocoanetics.com/2010/02/drawing-rounded-rectangles/#comment-2547</link>
		<dc:creator>Draw Circle Triangle and Rectangle in iPad &#8211; Drawing Rounded Rectangles &#124; Advanced App Development</dc:creator>
		<pubDate>Wed, 08 Jun 2011 23:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.drobnik.com/touch/?p=1963#comment-2547</guid>
		<description>[...] Drawing Rounded Rectangles   This entry was posted in iOS Development. Bookmark the permalink.    &#8592; AdAge doesn&#8217;t like iAd&#8217;s pricing scheme [...]</description>
		<content:encoded><![CDATA[<p>[...] Drawing Rounded Rectangles   This entry was posted in iOS Development. Bookmark the permalink.    &larr; AdAge doesn&#8217;t like iAd&#8217;s pricing scheme [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

