cell.selectedBackgroundView=[[UIView alloc]initWithFrame:cell.frame];
cell.selectedBackgroundView.backgroundColor=[UIColor whiteColor];
设置当前cell为选中状态
long numOfSelectedCell = [tableView indexPathForCell:cell].row;
if (indexPath.row==numOfSelectedCell) {
[self.tableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionNone];
}
网友评论