Nextrek
Diff Revisions
529
vs
530
for /iOS/SafariArte/trunk/SafariArte/Controllers/CongratulationVC.m
|
@@ -49,6 +49,10 @@ |
49 |
49 |
|
[self.btnSalta setTitle:NSLocalizedString(@"StepOver", nil) forState:UIControlStateNormal]; |
50 |
50 |
|
[self.btnAvanti setTitle:NSLocalizedString(@"Next", nil) forState:UIControlStateNormal]; |
51 |
51 |
|
|
|
52 |
+ |
|
|
53 |
+ |
((SFAPercorso*)[DATAMANAGER.user.percorsi objectForKey:self.routeForDetail.routeId]).completed = YES; |
|
54 |
+ |
[DATAMANAGER saveUser]; |
|
55 |
+ |
|
52 |
56 |
|
} |
53 |
57 |
|
- (void) viewWillAppear:(BOOL)animated{ |
54 |
58 |
|
[super viewWillAppear:animated]; |
|
@@ -57,18 +61,9 @@ |
57 |
61 |
|
|
58 |
62 |
|
- (void)didReceiveMemoryWarning { |
59 |
63 |
|
[super didReceiveMemoryWarning]; |
60 |
|
- |
// Dispose of any resources that can be recreated. |
61 |
64 |
|
} |
62 |
65 |
|
|
63 |
|
- |
/* |
64 |
|
- |
#pragma mark - Navigation |
65 |
66 |
|
|
66 |
|
- |
// In a storyboard-based application, you will often want to do a little preparation before navigation |
67 |
|
- |
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { |
68 |
|
- |
// Get the new view controller using [segue destinationViewController]. |
69 |
|
- |
// Pass the selected object to the new view controller. |
70 |
|
- |
} |
71 |
|
- |
*/ |
72 |
67 |
|
- (IBAction)saltaQuiz:(id)sender { |
73 |
68 |
|
FinalQuizVC *finalQuizVC = [[FinalQuizVC alloc] init]; |
74 |
69 |
|
finalQuizVC.routeForDetail = self.routeForDetail; |