[MAPSME-3628] [ios] Added cells deselection in settings.

This commit is contained in:
Ilya Grechuhin 2017-01-23 13:45:17 +03:00 committed by Vladimir Byko-Ianko
parent ecaa7e6a49
commit ec7e1e3880
5 changed files with 5 additions and 0 deletions

View file

@ -67,6 +67,7 @@ using np = platform::NetworkPolicy;
selected.accessoryType = UITableViewCellAccessoryCheckmark;
selected.selected = NO;
self.selected = selected;
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section

View file

@ -65,6 +65,7 @@
selectedCell.accessoryType = UITableViewCellAccessoryCheckmark;
selectedCell.selected = NO;
self.selectedCell = selectedCell;
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
@end

View file

@ -95,6 +95,7 @@ typedef NS_ENUM(NSUInteger, DurationInHours) { One = 1, Two = 2, Six = 6, Twelve
selectedCell = [tableView cellForRowAtIndexPath:indexPath];
selectedCell.selected = NO;
self.selectedCell = selectedCell;
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section

View file

@ -155,6 +155,7 @@ using namespace locale_translator;
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
if (indexPath.section == 0)
{
if (indexPath.row == 0)

View file

@ -52,6 +52,7 @@
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
self.selectedCell = [tableView cellForRowAtIndexPath:indexPath];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
@end