- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
..........
[self performSelector:@selector(deselect) withObject:nil afterDelay:0.5f];
}
- (void)deselect
{
[self.tableView deselectRowAtIndexPath:[self.tableView indexPathForSelectedRow] animated:YES];
}
设置tableViewCell间的分割线的颜色
[self.TableView setSeparatorColor:[UIColor xxxx ]];
选中时cell的背景
- cell.selectedBackgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"xxxxx.png"]] autorelease];
- //设置字体颜色
- cell.textLabel.highlightedTextColor = [UIColor xxxxx];
- [cell.textLabel setTextColor:color];//设置cell的字体的颜色