About Me

My photo
Drum & Bass Producer, Software Developer, Love my Cats

iPhone : How To Deselect a Row in a UITableView

Clicking a row in a UITableView keeps it 'selected' as a toggle.
I wanted to remove this selection after the user clicks the row.

Here's the code:

 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{ 
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
}