1. System default color settings
- //colorless
- cell.selectionStyle = uitableviewcellselectionstylenone;
-  
- //blue
- cell.selectionStyle = uitableviewcellselectionstyleblue;
-  
- //Gray
- Cell.selectionstyle = Uitableviewcellselectionstylegray;
2. Custom color and background settings
Change UITableViewCell background color When selected:
- Uicolor *color = [[uicoloralloc]initwithred:0.0green:0.0blue:0.0alpha:1]; //Use RGB to define your own colors
- cell.selectedBackgroundV iew = [[[uiview alloc] initwithframe:cell.frame] autorelease];
- Cell.selectedBackgroundView.backgroundColor = [Uicolor xxxxxx];
3. Custom UITableViewCell Background When selected
- cell.selectedbackgroundview = [[[uiimageview alloc] initwithimage:[uiimage imagenamed:@ "cellart.png"
- and font color
- Cell.textLabel.highlightedTextColor = [Uicolor Xxxcolor]; [Cell.textlabel Settextcolor:color]
4. Set the color of the split line between Tableviewcell
- [Thetableview Setseparatorcolor:[uicolor xxxx]];