<?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: UIColor Macros</title>
	<atom:link href="http://iPhoneDeveloperTips.com/cocoa/uicolor-macros.html/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneDeveloperTips.com/cocoa/uicolor-macros.html</link>
	<description>Tips and Tricks for iPhone developers</description>
	<lastBuildDate>Fri, 12 Mar 2010 10:03:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Lawrence</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/uicolor-macros.html/comment-page-1#comment-9685</link>
		<dc:creator>Lawrence</dc:creator>
		<pubDate>Wed, 17 Feb 2010 20:22:04 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=2342#comment-9685</guid>
		<description>Thanks or this.  It was just what I needed!</description>
		<content:encoded><![CDATA[<p>Thanks or this.  It was just what I needed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Nachbaur</title>
		<link>http://iPhoneDeveloperTips.com/cocoa/uicolor-macros.html/comment-page-1#comment-2786</link>
		<dc:creator>Michael Nachbaur</dc:creator>
		<pubDate>Fri, 05 Jun 2009 15:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=2342#comment-2786</guid>
		<description>Interesting approach, using a macro.  Instead of this, I added a category to NSString to add a &quot;hexColor&quot; method, to convert a string to a UIColor object.

http://bit.ly/NSString-HexColor

That allows you to say something like:

  NSString *colorStr = @&quot;#ff03ca&quot;;
  UIColor *color = [colorStr colorFromHex];</description>
		<content:encoded><![CDATA[<p>Interesting approach, using a macro.  Instead of this, I added a category to NSString to add a &#8220;hexColor&#8221; method, to convert a string to a UIColor object.</p>
<p><a href="http://bit.ly/NSString-HexColor" rel="nofollow">http://bit.ly/NSString-HexColor</a></p>
<p>That allows you to say something like:</p>
<p>  NSString *colorStr = @&#8221;#ff03ca&#8221;;<br />
  UIColor *color = [colorStr colorFromHex];</p>
]]></content:encoded>
	</item>
</channel>
</rss>
