1.在加载cell的地方(即 (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath里面)加上下面几句代码
[cell setBackgroundColor:CLEARCOLOR];
cell.selectedBackgroundView = [[UIViewalloc] initWithFrame:cell.frame];
cell.selectedBackgroundView.backgroundColor =COLOR(255,255, 255, 1.0);
2.制定表格默认选中某一行
//设置选中第一行
[self.tableView selectRowAtIndexPath:[NSIndexPathindexPathForItem:0inSection:0]animated:YESscrollPosition:UITableViewScrollPositionTop];
if ([self.tableView.delegaterespondsToSelector:@selector(tableView:didSelectRowAtIndexPath:)])
{
[self.tableView.delegatetableView:self.tableView didSelectRowAtIndexPath:[NSIndexPathindexPathForItem:0inSection:0]];
}