I want deselect a row previously selected selecting this again. I only can deselected this row clicking in other row but I want deselect this clicking on this again. How can I do this?
This is my code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self updateTableView];
}
- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self updateTableView];
}
- (void)updateTableView
{
[self.tableView beginUpdates];
[self.tableView endUpdates];
}
Thanks!!