<?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: Creating UIColor objects from hex values</title>
	<atom:link href="http://pessoal.org/blog/2008/11/27/creating-uicolor-objects-from-hex-values/feed/" rel="self" type="application/rss+xml" />
	<link>http://pessoal.org/blog/2008/11/27/creating-uicolor-objects-from-hex-values/</link>
	<description></description>
	<lastBuildDate>Fri, 02 Sep 2011 07:17:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Joseph DeCarlo</title>
		<link>http://pessoal.org/blog/2008/11/27/creating-uicolor-objects-from-hex-values/comment-page-1/#comment-93146</link>
		<dc:creator>Joseph DeCarlo</dc:creator>
		<pubDate>Tue, 23 Aug 2011 20:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://pessoal.org/blog/?p=113#comment-93146</guid>
		<description>Rather than use the category that Jonas referred to, I just converted the macro to a category and it works great!

@implementation UIColor (HexValue)

+ (UIColor*) colorWithHexValue:(NSInteger)hexColor {
    
    return [UIColor colorWithRed:((float)((hexColor &amp; 0xFF0000) &gt;&gt; 16))/255.0 green:((float)((hexColor &amp; 0xFF00) &gt;&gt; 8))/255.0 blue:((float)(hexColor &amp; 0xFF))/255.0 alpha:1.0];
}

@end</description>
		<content:encoded><![CDATA[<p>Rather than use the category that Jonas referred to, I just converted the macro to a category and it works great!</p>
<p>@implementation UIColor (HexValue)</p>
<p>+ (UIColor*) colorWithHexValue:(NSInteger)hexColor {</p>
<p>    return [UIColor colorWithRed:((float)((hexColor &amp; 0xFF0000) &gt;&gt; 16))/255.0 green:((float)((hexColor &amp; 0xFF00) &gt;&gt; 8))/255.0 blue:((float)(hexColor &amp; 0xFF))/255.0 alpha:1.0];<br />
}</p>
<p>@end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tristan</title>
		<link>http://pessoal.org/blog/2008/11/27/creating-uicolor-objects-from-hex-values/comment-page-1/#comment-88397</link>
		<dc:creator>Tristan</dc:creator>
		<pubDate>Mon, 17 Jan 2011 07:19:21 +0000</pubDate>
		<guid isPermaLink="false">http://pessoal.org/blog/?p=113#comment-88397</guid>
		<description>Terrific work!</description>
		<content:encoded><![CDATA[<p>Terrific work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darran</title>
		<link>http://pessoal.org/blog/2008/11/27/creating-uicolor-objects-from-hex-values/comment-page-1/#comment-88251</link>
		<dc:creator>Darran</dc:creator>
		<pubDate>Sun, 09 Jan 2011 02:12:46 +0000</pubDate>
		<guid isPermaLink="false">http://pessoal.org/blog/?p=113#comment-88251</guid>
		<description>Excellent. Exactly what I was looking for. Thanks.</description>
		<content:encoded><![CDATA[<p>Excellent. Exactly what I was looking for. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahmud Ahsan</title>
		<link>http://pessoal.org/blog/2008/11/27/creating-uicolor-objects-from-hex-values/comment-page-1/#comment-87888</link>
		<dc:creator>Mahmud Ahsan</dc:creator>
		<pubDate>Tue, 28 Dec 2010 14:05:53 +0000</pubDate>
		<guid isPermaLink="false">http://pessoal.org/blog/?p=113#comment-87888</guid>
		<description>It helps me. Thank You.</description>
		<content:encoded><![CDATA[<p>It helps me. Thank You.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://pessoal.org/blog/2008/11/27/creating-uicolor-objects-from-hex-values/comment-page-1/#comment-83967</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 01 Nov 2010 12:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://pessoal.org/blog/?p=113#comment-83967</guid>
		<description>Very handy, cheers!</description>
		<content:encoded><![CDATA[<p>Very handy, cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

