alekseyn/EasyTableView

Repeated select of same table view cell

Closed this issue · 2 comments

Even if you explicitly deselect a table view cell in the delegate method, repeated select of a cell at the same index path does not work. This is the case even if the cell at that index path is not the same.

Comment out this code ,you can repeated select of same table view cell .

  • (void)setSelectedIndexPath:(NSIndexPath *)indexPath {
    // if (![_selectedIndexPath isEqual:indexPath]) {
    NSIndexPath *oldIndexPath = [_selectedIndexPath copy];

    _selectedIndexPath = indexPath;
    
  • (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    // Don't allow the currently selected cell to be selectable
    // if ([_selectedIndexPath isEqual:indexPath]) {
    // return nil;
    // }

EasyTableView was just recently updated. The interface has changed slightly so you may need to make changes to your code to support EasyTableView 2.0. Please update and let me know if the same behavior still exists. Thanks.