i want to pass from a view controller 4 BOOL Values to my ChooseLevelVC:
if (_moves >=4) {
clvc.level1Completed3 = 1;
}
if (_moves == 3) {
clvc.level1Completed2 = 1;
}
if (_moves == 2) {
clvc.level1Completed1 = 1;
} else
clvc.level1Completed = 1;
But i don't want to present ChooseLevelVC. It should work in Background. This Bool Values changes the Image of Buttons in ChooseLevelVC.
My Code works fine if i present ChooseLevelVC with:
ChooseLevelViewController *clvc = [self.storyboard instantiateViewControllerWithIdentifier:@"chooseLevelViewController"];
if (_moves >=4) {
clvc.level1Completed3 = 1;
}
if (_moves == 3) {
clvc.level1Completed2 = 1;
}
if (_moves == 2) {
clvc.level1Completed1 = 1;
} else
clvc.level1Completed = 1;
[self presentViewController:clvc animated:NO completion:^(){
}];
if i don't present ChooseLevelVC, nothing happens. Do i have to save the Values? When yes, how?
thanks!