UICheckBoxTableView.m: fix all/none selections toggle where lines where not highlighted as expected

This commit is contained in:
Gautier Pelloux-Prayer 2016-05-31 10:39:29 +02:00
parent cc81f9dfaf
commit 93e57c0fb7

View file

@ -149,7 +149,13 @@
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
if (!_toggleSelectionButton.selected) {
[_selectedItems addObject:indexPath];
[self.tableView selectRowAtIndexPath:indexPath
animated:NO
scrollPosition:UITableViewScrollPositionNone];
} else {
[self.tableView deselectRowAtIndexPath:indexPath animated:NO];
}
[self accessoryForCell:cell atPath:indexPath];
}
}