2011-09-30 31 views

回答

0

你可以设置你想要的默认颜色或任何颜色:

cell.backgroundColor=[UIColor clearColor]; 

(或)

cell.backgroundColor=[UIColor blueColor]; 
+1

尽量避免在UITableViewCells上使用[UIColor clearColor],因为它会影响滚动速度n例如由于需要完成的额外混合。 – hypercrypt

1

设置单元格中tableView:willDisplayCell:forRowAtIndexPath:的背景颜色,例如:

- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath 
{ 
     cell.backgroundColor = [UIColor blueColor]; 
} 
+0

很好,谢谢你的工作 – MohanVydehi