From 93e57c0fb7214edbab188062efbe0ae1e3725cd5 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 31 May 2016 10:39:29 +0200 Subject: [PATCH] UICheckBoxTableView.m: fix all/none selections toggle where lines where not highlighted as expected --- Classes/LinphoneUI/UICheckBoxTableView.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Classes/LinphoneUI/UICheckBoxTableView.m b/Classes/LinphoneUI/UICheckBoxTableView.m index 9d961108d..19716f564 100644 --- a/Classes/LinphoneUI/UICheckBoxTableView.m +++ b/Classes/LinphoneUI/UICheckBoxTableView.m @@ -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]; } }