ios: DeHighlight the table row after clicking

After clicking the table rows, the highlighted row will just leave there until I click another row. To resolve this issue just by adding this line:

[tableView deselectRowAtIndexPath:indexPath animated:YES]; 

in this function
– (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

Advertisements