How do you disable selecting only a single cell in a UITableView? I have several, and I only want the last to be disabled.
-(NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath { if ([self numberOfRowsInSection] == [indexPath row]) { return nil; } else { return indexPath; } }
the last row of the table will not be selected