Skip to content
Snippets Groups Projects
Commit 3b56c909 authored by Maxime Graulich's avatar Maxime Graulich
Browse files

iOS: fix UISwitch for PViews

parent 4b5c3734
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment