<?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: Making Smarter Table View Cells</title>
	<atom:link href="/2010/11/18/making-smarter-table-view-cells/feed/" rel="self" type="application/rss+xml" />
	<link>http://icodeblog.com/2010/11/18/making-smarter-table-view-cells/</link>
	<description>iPhone Programming Tutorials</description>
	<lastBuildDate>Mon, 02 Dec 2013 14:22:00 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.7.1</generator>
	<item>
		<title>By: Shai</title>
		<link>http://icodeblog.com/2010/11/18/making-smarter-table-view-cells/#comment-8819</link>
		<dc:creator><![CDATA[Shai]]></dc:creator>
		<pubDate>Sun, 20 Nov 2011 08:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2818#comment-8819</guid>
		<description><![CDATA[great post, how would you calculate an image that is part of the cell?]]></description>
		<content:encoded><![CDATA[<p>great post, how would you calculate an image that is part of the cell?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RemixOne</title>
		<link>http://icodeblog.com/2010/11/18/making-smarter-table-view-cells/#comment-8384</link>
		<dc:creator><![CDATA[RemixOne]]></dc:creator>
		<pubDate>Sun, 23 Oct 2011 20:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2818#comment-8384</guid>
		<description><![CDATA[Great post, this helped me solve a long-standing problem. Thanks]]></description>
		<content:encoded><![CDATA[<p>Great post, this helped me solve a long-standing problem. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CodeFrux</title>
		<link>http://icodeblog.com/2010/11/18/making-smarter-table-view-cells/#comment-5697</link>
		<dc:creator><![CDATA[CodeFrux]]></dc:creator>
		<pubDate>Wed, 16 Mar 2011 07:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2818#comment-5697</guid>
		<description><![CDATA[Interesting!
see new trends in mobile phone application development , hope would help 
www.codefrux.com]]></description>
		<content:encoded><![CDATA[<p>Interesting!<br />
see new trends in mobile phone application development , hope would help<br />
<a href="http://www.codefrux.com" rel="nofollow">http://www.codefrux.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CodeFrux</title>
		<link>http://icodeblog.com/2010/11/18/making-smarter-table-view-cells/#comment-5698</link>
		<dc:creator><![CDATA[CodeFrux]]></dc:creator>
		<pubDate>Wed, 16 Mar 2011 07:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2818#comment-5698</guid>
		<description><![CDATA[Interesting!
see new trends in mobile phone application development , hope would help 
www.codefrux.com]]></description>
		<content:encoded><![CDATA[<p>Interesting!<br />
see new trends in mobile phone application development , hope would help<br />
<a href="http://www.codefrux.com" rel="nofollow">http://www.codefrux.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Nezumi</title>
		<link>http://icodeblog.com/2010/11/18/making-smarter-table-view-cells/#comment-4556</link>
		<dc:creator><![CDATA[Jason Nezumi]]></dc:creator>
		<pubDate>Sun, 09 Jan 2011 16:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2818#comment-4556</guid>
		<description><![CDATA[There is one other major issue, but it&#039;s not with this code specifically, it&#039;s with UITableView&#039;s implementation itself.

The height-for-row method is used to interrogate the delegate about cell&#039;s height BEFORE the cells are created.  This means that, if we are going to have dynamic height cells for any reason whatsoever, some sort of &#039;shell&#039; of the performLayout method we&#039;d be calling from within the cell itself is going to be necessary.

This quickly becomes a maintenance nightmare!  Tuning cell layouts pixel-by-pixel means a minimum of two edits to ensure that these two completely different methods always return the same values.  These numbers can&#039;t be pulled directly from cells either, unless we create a cell inside this method and have it perform its layout, which is a terribly expensive operation as it will create a handful of objects and size them and calculate line sizes and so on.

There is a possible middle-ground, that will be able to give us cell heights as cheaply as possible and still allow the method to be implemented once . . . but I&#039;ll write up my own article for that soon.  ;3]]></description>
		<content:encoded><![CDATA[<p>There is one other major issue, but it&#8217;s not with this code specifically, it&#8217;s with UITableView&#8217;s implementation itself.</p>
<p>The height-for-row method is used to interrogate the delegate about cell&#8217;s height BEFORE the cells are created.  This means that, if we are going to have dynamic height cells for any reason whatsoever, some sort of &#8216;shell&#8217; of the performLayout method we&#8217;d be calling from within the cell itself is going to be necessary.</p>
<p>This quickly becomes a maintenance nightmare!  Tuning cell layouts pixel-by-pixel means a minimum of two edits to ensure that these two completely different methods always return the same values.  These numbers can&#8217;t be pulled directly from cells either, unless we create a cell inside this method and have it perform its layout, which is a terribly expensive operation as it will create a handful of objects and size them and calculate line sizes and so on.</p>
<p>There is a possible middle-ground, that will be able to give us cell heights as cheaply as possible and still allow the method to be implemented once . . . but I&#8217;ll write up my own article for that soon.  ;3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jujucool290</title>
		<link>http://icodeblog.com/2010/11/18/making-smarter-table-view-cells/#comment-4555</link>
		<dc:creator><![CDATA[jujucool290]]></dc:creator>
		<pubDate>Tue, 21 Dec 2010 15:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2818#comment-4555</guid>
		<description><![CDATA[Very nice, good job !]]></description>
		<content:encoded><![CDATA[<p>Very nice, good job !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcos Crispino</title>
		<link>http://icodeblog.com/2010/11/18/making-smarter-table-view-cells/#comment-4554</link>
		<dc:creator><![CDATA[Marcos Crispino]]></dc:creator>
		<pubDate>Wed, 24 Nov 2010 17:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2818#comment-4554</guid>
		<description><![CDATA[I think you actually don&#039;t need to calculate the number of lines. Setting this value to zero will use as many lines as it needs.]]></description>
		<content:encoded><![CDATA[<p>I think you actually don&#8217;t need to calculate the number of lines. Setting this value to zero will use as many lines as it needs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CHRISZAMANILLO.COM :: Making Smarter Table View Cells :: http://www.chriszamanillo.com</title>
		<link>http://icodeblog.com/2010/11/18/making-smarter-table-view-cells/#comment-4553</link>
		<dc:creator><![CDATA[CHRISZAMANILLO.COM :: Making Smarter Table View Cells :: http://www.chriszamanillo.com]]></dc:creator>
		<pubDate>Mon, 22 Nov 2010 03:26:54 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2818#comment-4553</guid>
		<description><![CDATA[[...] iCodeBlog [...]]]></description>
		<content:encoded><![CDATA[<p>[...] iCodeBlog [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drunknbass</title>
		<link>http://icodeblog.com/2010/11/18/making-smarter-table-view-cells/#comment-4551</link>
		<dc:creator><![CDATA[drunknbass]]></dc:creator>
		<pubDate>Fri, 19 Nov 2010 21:55:21 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2818#comment-4551</guid>
		<description><![CDATA[the problem with your code is doing this calculation is expensive. I have gotten around this by pre computing the line height before drawing the table and storing those values. The way you have it, this expensive operation happens while drawing is taking place and every time you scroll. This would lead to chunky scrolling and having to compute those #&#039;s needlessly.

Even using a lazy loading method to computer these #&#039;s on the first pass would still lead to chunky scrolling until the entire table has been scrolled through.]]></description>
		<content:encoded><![CDATA[<p>the problem with your code is doing this calculation is expensive. I have gotten around this by pre computing the line height before drawing the table and storing those values. The way you have it, this expensive operation happens while drawing is taking place and every time you scroll. This would lead to chunky scrolling and having to compute those #&#8217;s needlessly.</p>
<p>Even using a lazy loading method to computer these #&#8217;s on the first pass would still lead to chunky scrolling until the entire table has been scrolled through.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PhilipS</title>
		<link>http://icodeblog.com/2010/11/18/making-smarter-table-view-cells/#comment-4550</link>
		<dc:creator><![CDATA[PhilipS]]></dc:creator>
		<pubDate>Fri, 19 Nov 2010 20:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=2818#comment-4550</guid>
		<description><![CDATA[That is very slick!  Thanks for sharing.]]></description>
		<content:encoded><![CDATA[<p>That is very slick!  Thanks for sharing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
