Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Each <a href="http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITableViewCell_Class/Reference/Reference.html" rel="nofollow">UITableViewCell</a> has a few subviews which you can replace with your own. They are:</p> <ul> <li><a href="http://file:///Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_1.iOSLibrary.docset/Contents/Resources/Documents/documentation/UIKit/Reference/UITableViewCell_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006938-CH3-SW45" rel="nofollow">UITableViewCell.imageView</a></li> <li><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewCell_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006938-CH3-SW18" rel="nofollow">UITableViewCell.contentView</a></li> <li><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewCell_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006938-CH3-SW5" rel="nofollow">UITableViewCell.backgroundView</a></li> <li><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewCell_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006938-CH3-SW14" rel="nofollow">UITableViewCell.accessoryView</a></li> </ul> <p>As Gendolkari pointed out, <a href="http://cocoawithlove.com" rel="nofollow">Cocoa With Love</a> has a great <a href="http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html" rel="nofollow">guide on custom UITableViews</a>. </p> <p>The theory is that you replace each of those views with an appropriate view to "skin" your UITableViewCells.</p> <p>When replacing the background view, you check for the first and last cells when skinning the background view, otherwise you can use a "middle" background image. Implement it as a UIImageView. As far as the other views, use what you want.</p> <p>Additionally, you can use a completely custom NIB file and load that in instead of the default styles provided by UIKit.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload