0
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
[cell.layer setBorderColor:[[UIColor colorWithRed:0.663 green:0.0 blue:0.373 alpha:1] CGColor]];
[cell.layer setBorderWidth:3.0];
上面的代码在选择时高亮显示单元格边框。 当我选择另一个细胞的细胞也高兴。所以突出显示两个单元格。我想突出显示我选择的特定单元格。 任何人面对这个问题给我的建议。 @先谢谢突出显示表格中的单元格边框的问题