<?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: Glowing and soft shadowed text on iPhone</title>
	<atom:link href="http://www.redrobotstudios.com/blog/2010/04/29/create-glow-soft-shadow-text-on-iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redrobotstudios.com/blog/2010/04/29/create-glow-soft-shadow-text-on-iphone/</link>
	<description>Web development company specialising in Django and mobile development for clients around the world</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:40:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Como adicionar um efeito glow em uma UILabel &#171; Base de Conhecimento</title>
		<link>http://www.redrobotstudios.com/blog/2010/04/29/create-glow-soft-shadow-text-on-iphone/comment-page-1/#comment-211</link>
		<dc:creator>Como adicionar um efeito glow em uma UILabel &#171; Base de Conhecimento</dc:creator>
		<pubDate>Thu, 23 Jun 2011 05:51:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog/?p=171#comment-211</guid>
		<description>[...] http://www.redrobotstudios.com/blog/2010/04/29/create-glow-soft-shadow-text-on-iphone/     Filed under&#160;Desenvolvimento, iOS, iPhone, Objective-C  Comment (RSS) [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.redrobotstudios.com/blog/2010/04/29/create-glow-soft-shadow-text-on-iphone/" rel="nofollow">http://www.redrobotstudios.com/blog/2010/04/29/create-glow-soft-shadow-text-on-iphone/</a>     Filed under&nbsp;Desenvolvimento, iOS, iPhone, Objective-C  Comment (RSS) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Taylor</title>
		<link>http://www.redrobotstudios.com/blog/2010/04/29/create-glow-soft-shadow-text-on-iphone/comment-page-1/#comment-139</link>
		<dc:creator>Alan Taylor</dc:creator>
		<pubDate>Tue, 20 Jul 2010 01:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog/?p=171#comment-139</guid>
		<description>I think I got it - you can add the following to RRSGlowLabel.m before the [super drawinRect:rect]; line:

rect = CGRectMake(rect.origin.x + 15, rect.origin.y + 15, rect.size.width + 15, rect.size.height + 15);

Here, I&#039;m using 15 as the average glowSize.</description>
		<content:encoded><![CDATA[<p>I think I got it &#8211; you can add the following to RRSGlowLabel.m before the [super drawinRect:rect]; line:</p>
<p>rect = CGRectMake(rect.origin.x + 15, rect.origin.y + 15, rect.size.width + 15, rect.size.height + 15);</p>
<p>Here, I&#8217;m using 15 as the average glowSize.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Taylor</title>
		<link>http://www.redrobotstudios.com/blog/2010/04/29/create-glow-soft-shadow-text-on-iphone/comment-page-1/#comment-137</link>
		<dc:creator>Alan Taylor</dc:creator>
		<pubDate>Tue, 13 Jul 2010 11:18:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog/?p=171#comment-137</guid>
		<description>Andrew,

Thanks so much for this. For anyone else reading this - a gotcha that tripped me up was forgetting to change the class of the UILabel in Interface Builder to RRSGlowLabel ;)

I am having one issue with this though, being that the labels I am working with need to be aligned to the left and the glow is being cut off where the UILabel ends.

Here is an image of the effect from your sample code. The effect is even worse when the Text itself starts there, such as with a T or D...

http://alantaylor.homeip.net/Ars/glow.png

Do you have any idea how to get around this? The closest thing I came across in the documentation was to subclass - (void)drawTextInRect:(CGRect)rect which I can see you are already doing.

I did come across the following sample code, but have been unable to fine a suitable place to fit this into my code or yours.

CGRect frame = self.frame;
frame.size.width += 20; //l + r padding 
self.frame = frame;



Ideally, I&#039;m looking for something to the effects of padding the UILabel so that there is enough room for the glow. This would need to carry over when the frame of the label changes (for orientation changes), or be something that could be called again at the time of the orientation change.

Having something where the glow permeates beyond the edge of the UILabel would also work fine!

Any ideas?</description>
		<content:encoded><![CDATA[<p>Andrew,</p>
<p>Thanks so much for this. For anyone else reading this &#8211; a gotcha that tripped me up was forgetting to change the class of the UILabel in Interface Builder to RRSGlowLabel ;)</p>
<p>I am having one issue with this though, being that the labels I am working with need to be aligned to the left and the glow is being cut off where the UILabel ends.</p>
<p>Here is an image of the effect from your sample code. The effect is even worse when the Text itself starts there, such as with a T or D&#8230;</p>
<p><a href="http://alantaylor.homeip.net/Ars/glow.png" rel="nofollow">http://alantaylor.homeip.net/Ars/glow.png</a></p>
<p>Do you have any idea how to get around this? The closest thing I came across in the documentation was to subclass &#8211; (void)drawTextInRect:(CGRect)rect which I can see you are already doing.</p>
<p>I did come across the following sample code, but have been unable to fine a suitable place to fit this into my code or yours.</p>
<p>CGRect frame = self.frame;<br />
frame.size.width += 20; //l + r padding<br />
self.frame = frame;</p>
<p>Ideally, I&#8217;m looking for something to the effects of padding the UILabel so that there is enough room for the glow. This would need to carry over when the frame of the label changes (for orientation changes), or be something that could be called again at the time of the orientation change.</p>
<p>Having something where the glow permeates beyond the edge of the UILabel would also work fine!</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Jennings</title>
		<link>http://www.redrobotstudios.com/blog/2010/04/29/create-glow-soft-shadow-text-on-iphone/comment-page-1/#comment-129</link>
		<dc:creator>Ryan Jennings</dc:creator>
		<pubDate>Wed, 09 Jun 2010 18:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog/?p=171#comment-129</guid>
		<description>I love when stuff gets posted to the Interwebs just as you start scratching your head. Thanks a lot Andrew!</description>
		<content:encoded><![CDATA[<p>I love when stuff gets posted to the Interwebs just as you start scratching your head. Thanks a lot Andrew!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

