Skip to content
Snippets Groups Projects
Commit 1b5ebbb6 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix choice!

parent 5658a247
No related branches found
No related tags found
No related merge requests found
...@@ -153,8 +153,7 @@ ...@@ -153,8 +153,7 @@
[alertController addAction:[UIAlertAction actionWithTitle:[NSString stringWithFormat:@"%s", numbers[0].getValueLabel(choices[i]).c_str()] [alertController addAction:[UIAlertAction actionWithTitle:[NSString stringWithFormat:@"%s", numbers[0].getValueLabel(choices[i]).c_str()]
style:UIAlertActionStyleDefault style:UIAlertActionStyleDefault
handler:^(UIAlertAction *action) { handler:^(UIAlertAction *action) {
std::cout << numbers[0].getValueLabel(i).c_str() << std::endl; [self updateNumber:numbers[0] withValue:choices[i]];
[self updateNumber:numbers[0] withValue:i];
[button setTitle:[NSString stringWithFormat:@"%s", numbers[0].getValueLabel(i).c_str()] forState:UIControlStateNormal]; [button setTitle:[NSString stringWithFormat:@"%s", numbers[0].getValueLabel(i).c_str()] forState:UIControlStateNormal];
}]]; }]];
...@@ -178,6 +177,7 @@ ...@@ -178,6 +177,7 @@
{ {
n.setValue(v); n.setValue(v);
onelab::server::instance()->set(n); onelab::server::instance()->set(n);
[super editValue]; [super editValue];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment