<?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 iOS/Web Developer&#039;s Life in Beta</title> <atom:link href="http://nachbaur.com/comments/feed" rel="self" type="application/rss+xml" /><link>http://nachbaur.com</link> <description>Making broken software somewhat less broken</description> <lastBuildDate>Tue, 10 Jan 2012 23:24:35 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Comment on Core Graphics isn&#8217;t scary, honest! by Vladimir Grichina</title><link>http://nachbaur.com/blog/core-graphics-isnt-scary-honest/comment-page-1#comment-1464</link> <dc:creator>Vladimir Grichina</dc:creator> <pubDate>Tue, 10 Jan 2012 23:24:35 +0000</pubDate> <guid
isPermaLink="false">http://nachbaur.com/?p=724#comment-1464</guid> <description>Note that you can also use [UIColor set], [UIColor setFill] and [UIColor setStroke] to set drawing color in a simpler way.</description> <content:encoded><![CDATA[<p>Note that you can also use [UIColor set], [UIColor setFill] and [UIColor setStroke] to set drawing color in a simpler way.</p> ]]></content:encoded> </item> <item><title>Comment on Core Graphics isn&#8217;t scary, honest! by Michael Nachbaur</title><link>http://nachbaur.com/blog/core-graphics-isnt-scary-honest/comment-page-1#comment-1174</link> <dc:creator>Michael Nachbaur</dc:creator> <pubDate>Thu, 05 Jan 2012 19:17:46 +0000</pubDate> <guid
isPermaLink="false">http://nachbaur.com/?p=724#comment-1174</guid> <description>Hi Jean, as Paul commented up above, my post has a few bugs in its code samples, so I need to fix that.</description> <content:encoded><![CDATA[<p>Hi Jean, as Paul commented up above, my post has a few bugs in its code samples, so I need to fix that.</p> ]]></content:encoded> </item> <item><title>Comment on Core Graphics isn&#8217;t scary, honest! by Michael Nachbaur</title><link>http://nachbaur.com/blog/core-graphics-isnt-scary-honest/comment-page-1#comment-1173</link> <dc:creator>Michael Nachbaur</dc:creator> <pubDate>Thu, 05 Jan 2012 19:17:02 +0000</pubDate> <guid
isPermaLink="false">http://nachbaur.com/?p=724#comment-1173</guid> <description>Thank you for catching those bugs in my post. I wrote this from memory without having access to Xcode or the Xcode documentation over the Christmas holidays, so I obviously missed a few steps.
I&#039;ll update the post ASAP to fix these bugs.  Again, thanks!</description> <content:encoded><![CDATA[<p>Thank you for catching those bugs in my post. I wrote this from memory without having access to Xcode or the Xcode documentation over the Christmas holidays, so I obviously missed a few steps.</p><p>I&#8217;ll update the post ASAP to fix these bugs.  Again, thanks!</p> ]]></content:encoded> </item> <item><title>Comment on Core Graphics isn&#8217;t scary, honest! by Jean</title><link>http://nachbaur.com/blog/core-graphics-isnt-scary-honest/comment-page-1#comment-1172</link> <dc:creator>Jean</dc:creator> <pubDate>Thu, 05 Jan 2012 12:37:23 +0000</pubDate> <guid
isPermaLink="false">http://nachbaur.com/?p=724#comment-1172</guid> <description>Hi
I have tried to run the code uilabel drawing with the second drawRect. However, drawRect is not called, even when I use [self setNeedsDisplay].</description> <content:encoded><![CDATA[<p>Hi<br
/> I have tried to run the code uilabel drawing with the second drawRect. However, drawRect is not called, even when I use [self setNeedsDisplay].</p> ]]></content:encoded> </item> <item><title>Comment on Core Graphics isn&#8217;t scary, honest! by Paul</title><link>http://nachbaur.com/blog/core-graphics-isnt-scary-honest/comment-page-1#comment-1169</link> <dc:creator>Paul</dc:creator> <pubDate>Wed, 04 Jan 2012 15:18:36 +0000</pubDate> <guid
isPermaLink="false">http://nachbaur.com/?p=724#comment-1169</guid> <description>I think it&#039;s great that you are putting effort in introducing newcomers to CoreGraphics but in this post beginners will pick up some things they probably should not be picking up.
The docs for -[UILabel drawTextInRect:] state the following:
&quot;You should not call this method directly. This method should only be overridden by subclasses that want to modify the default drawing behavior for the label’s text.&quot;
Doing what you do in your code samples is ill-advised in terms of future-proofing your application.
Apart from that there is no -[UIViewController drawRect:], so the code sample will not work and will probably add to the confusion among beginners about the role of UIViewController and UIView.</description> <content:encoded><![CDATA[<p>I think it&#8217;s great that you are putting effort in introducing newcomers to CoreGraphics but in this post beginners will pick up some things they probably should not be picking up.</p><p>The docs for -[UILabel drawTextInRect:] state the following:</p><p>&#8220;You should not call this method directly. This method should only be overridden by subclasses that want to modify the default drawing behavior for the label’s text.&#8221;</p><p>Doing what you do in your code samples is ill-advised in terms of future-proofing your application.</p><p>Apart from that there is no -[UIViewController drawRect:], so the code sample will not work and will probably add to the confusion among beginners about the role of UIViewController and UIView.</p> ]]></content:encoded> </item> <item><title>Comment on Core Graphics isn&#8217;t scary, honest! by Michael Nachbaur</title><link>http://nachbaur.com/blog/core-graphics-isnt-scary-honest/comment-page-1#comment-1168</link> <dc:creator>Michael Nachbaur</dc:creator> <pubDate>Tue, 03 Jan 2012 06:09:37 +0000</pubDate> <guid
isPermaLink="false">http://nachbaur.com/?p=724#comment-1168</guid> <description>Yeah, I didn&#039;t want this post to be too long, so I intentionally avoided diving into too much detail there.
To answer your questions:
1) I didn&#039;t use floorf because I wanted to round the values up (using ceilf).  There are cases where rounding down is preferred. For example, in an application I&#039;m working on right now I need to render borders between different UIView subclasses, and the left/right borders need to line up. I have to use ceilf on one side and floorf on the other, so that number values are rounded up or down so the borders don&#039;t overlap.
2) The reason I subtracted 0.5 from the Y coordinate, but not the X coordinate, was because the line I was showing here was a horizontal line that extended along the entire width of the view.  In a follow-up post I&#039;ll provide some visuals to help explain this point more.</description> <content:encoded><![CDATA[<p>Yeah, I didn&#8217;t want this post to be too long, so I intentionally avoided diving into too much detail there.</p><p>To answer your questions:</p><p>1) I didn&#8217;t use floorf because I wanted to round the values up (using ceilf).  There are cases where rounding down is preferred. For example, in an application I&#8217;m working on right now I need to render borders between different UIView subclasses, and the left/right borders need to line up. I have to use ceilf on one side and floorf on the other, so that number values are rounded up or down so the borders don&#8217;t overlap.</p><p>2) The reason I subtracted 0.5 from the Y coordinate, but not the X coordinate, was because the line I was showing here was a horizontal line that extended along the entire width of the view.  In a follow-up post I&#8217;ll provide some visuals to help explain this point more.</p> ]]></content:encoded> </item> <item><title>Comment on Core Graphics isn&#8217;t scary, honest! by Michael Nachbaur</title><link>http://nachbaur.com/blog/core-graphics-isnt-scary-honest/comment-page-1#comment-1167</link> <dc:creator>Michael Nachbaur</dc:creator> <pubDate>Tue, 03 Jan 2012 06:02:59 +0000</pubDate> <guid
isPermaLink="false">http://nachbaur.com/?p=724#comment-1167</guid> <description>If the labels are static, you might as well use Core Graphics to render the labels (either using a UILabel or direct rendering with NSString, whichever makes the most sense for you). As long as you don&#039;t need to re-layout your labels, and if you&#039;re able to take advantage of the contentMode property enough, you&#039;ll most likely never end up re-drawing that label much.  So it&#039;ll be blazing fast.</description> <content:encoded><![CDATA[<p>If the labels are static, you might as well use Core Graphics to render the labels (either using a UILabel or direct rendering with NSString, whichever makes the most sense for you). As long as you don&#8217;t need to re-layout your labels, and if you&#8217;re able to take advantage of the contentMode property enough, you&#8217;ll most likely never end up re-drawing that label much.  So it&#8217;ll be blazing fast.</p> ]]></content:encoded> </item> <item><title>Comment on Core Graphics isn&#8217;t scary, honest! by Scott</title><link>http://nachbaur.com/blog/core-graphics-isnt-scary-honest/comment-page-1#comment-1166</link> <dc:creator>Scott</dc:creator> <pubDate>Mon, 02 Jan 2012 18:10:16 +0000</pubDate> <guid
isPermaLink="false">http://nachbaur.com/?p=724#comment-1166</guid> <description>Your pixel drawing example could use much more detail.  You mention floorf and then never use it.  You subtract .5 from one of the Y positions, but not the other.  Why?  Why don&#039;t you subtract it from the X coordinates too?</description> <content:encoded><![CDATA[<p>Your pixel drawing example could use much more detail.  You mention floorf and then never use it.  You subtract .5 from one of the Y positions, but not the other.  Why?  Why don&#8217;t you subtract it from the X coordinates too?</p> ]]></content:encoded> </item> <item><title>Comment on Core Graphics isn&#8217;t scary, honest! by Julien Vignali</title><link>http://nachbaur.com/blog/core-graphics-isnt-scary-honest/comment-page-1#comment-1165</link> <dc:creator>Julien Vignali</dc:creator> <pubDate>Mon, 02 Jan 2012 13:08:37 +0000</pubDate> <guid
isPermaLink="false">http://nachbaur.com/?p=724#comment-1165</guid> <description>Great article with some good tips!
I am playing with UILabel drawing and was wondering if drawing about 20 labels in a UIView is faster and more memory-friendly than managing 20 UILabels objects (note: the text of the labels are static, they won&#039;t change).
What&#039;s your opinion ?
And what about using NSString -drawInRect: method instead of UILabel&#039;s ? Does it make any difference ?
Thanks :)</description> <content:encoded><![CDATA[<p>Great article with some good tips!<br
/> I am playing with UILabel drawing and was wondering if drawing about 20 labels in a UIView is faster and more memory-friendly than managing 20 UILabels objects (note: the text of the labels are static, they won&#8217;t change).<br
/> What&#8217;s your opinion ?<br
/> And what about using NSString -drawInRect: method instead of UILabel&#8217;s ? Does it make any difference ?<br
/> Thanks <img
src='http://nachbaur.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>Comment on Back To Basics: Simple debugging tips in Xcode by Nick Hopkins</title><link>http://nachbaur.com/blog/basics-xcode-debugging-tips/comment-page-1#comment-1161</link> <dc:creator>Nick Hopkins</dc:creator> <pubDate>Thu, 29 Dec 2011 20:57:12 +0000</pubDate> <guid
isPermaLink="false">http://nachbaur.com/?p=726#comment-1161</guid> <description>Hi,
Just like to day thanks for the Google logo fix for translucent toolbars over Google Maps - worked a treat!
Nick</description> <content:encoded><![CDATA[<p>Hi,<br
/> Just like to day thanks for the Google logo fix for translucent toolbars over Google Maps &#8211; worked a treat!<br
/> Nick</p> ]]></content:encoded> </item> </channel> </rss>
