In your didSelectRowAtIndexPath
you need to call deselectRowAtIndexPath
to deselect the cell.
So whatever else you are doing in didSelectRowAtIndexPath
you just have it call deselectRowAtIndexPath
as well.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Do some stuff when the row is selected
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…