forked from organicmaps/organicmaps
[MAPSME-3628] [ios] Added cells deselection in settings.
This commit is contained in:
parent
ecaa7e6a49
commit
ec7e1e3880
5 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
selectedCell.accessoryType = UITableViewCellAccessoryCheckmark;
|
||||
selectedCell.selected = NO;
|
||||
self.selectedCell = selectedCell;
|
||||
[tableView deselectRowAtIndexPath:indexPath animated:YES];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
self.selectedCell = [tableView cellForRowAtIndexPath:indexPath];
|
||||
[tableView deselectRowAtIndexPath:indexPath animated:YES];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Reference in a new issue