<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Table View on The Dangling Pointer</title><link>https://aaron.blog/tags/table-view/</link><description>Recent content in Table View on The Dangling Pointer</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 07 Jul 2011 20:02:48 +0000</lastBuildDate><atom:link href="https://aaron.blog/tags/table-view/index.xml" rel="self" type="application/rss+xml"/><item><title>iOS - Customize Table View Cells</title><link>https://aaron.blog/ios-customize-table-view-cells/</link><pubDate>Thu, 07 Jul 2011 20:02:48 +0000</pubDate><guid>https://aaron.blog/ios-customize-table-view-cells/</guid><description>&lt;p&gt;Ever wanted to have alternated colors on your table view cells? If so, you've probably done something inside of cellForRowAtIndexPath and applied a background color to your cell there.&lt;/p&gt;&lt;p&gt;Would you be surprised to know that's completely wrong?  Yup.  Wrong.  WRONG WRONG WRONG.&lt;/p&gt;&lt;p&gt;I didn't know this, but any styles applied to cells based on state or whatever should really be in willDisplayCell - NOT when you configure the cell itself!  Per &lt;a href="http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITableViewDelegate_Protocol/Reference/Reference.html" rel="noopener"&gt;Apple's documentation&lt;/a&gt; for the Table View delegate -&lt;/p&gt;</description></item></channel></rss>