diff --git a/contrib/mobile/iOS/Onelab/OptionsViewController.mm b/contrib/mobile/iOS/Onelab/OptionsViewController.mm index e0e32175cf5e96b803fb1e087ec8b18192fb3073..2714fc4d64de1f2dac77da87c203104629cf5c90 100644 --- a/contrib/mobile/iOS/Onelab/OptionsViewController.mm +++ b/contrib/mobile/iOS/Onelab/OptionsViewController.mm @@ -180,6 +180,15 @@ break; case 1: { + NSArray *rows = [tableView indexPathsForVisibleRows]; + for(NSIndexPath *mIndexpath in rows) + if(![mIndexpath isEqual:indexPath]){ + UITableViewCell *tmp = [tableView cellForRowAtIndexPath:indexPath]; + for(UIView *tmpv in tmp.subviews)for(UIView *v in tmpv.subviews) + if([v isKindOfClass:[UISwitch class]]) + [(UISwitch *)v setOn:PView::list[v.tag]->getOptions()->visible]; + } + [cell setSelectionStyle:UITableViewCellSelectionStyleGray]; int i = PView::list.size() - 1 - indexPath.row; cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;