Nextrek
Diff Revisions
569
vs
570
for /iOS/SafariArte/trunk/SafariArte/Commodities/SWRevealViewController/RouteQuestionsVC/RouteQuestionsVC.m
|
@@ -42,6 +42,8 @@ |
42 |
42 |
|
self.questionIndex=[NSNumber numberWithInt:0]; |
43 |
43 |
|
self.percorsoQuestion=[self.routeForDetail.questions objectAtIndex:[self.questionIndex intValue]]; |
44 |
44 |
|
|
|
45 |
+ |
[self.questionImage setImageWithURL:[NSURL URLWithString:self.percorsoQuestion.fileImage]]; |
|
46 |
+ |
|
45 |
47 |
|
self.questionLabel.text=self.percorsoQuestion.label; |
46 |
48 |
|
[self.navigationItem setHidesBackButton:YES]; |
47 |
49 |
|
|
|
@@ -61,7 +63,7 @@ |
61 |
63 |
|
|
62 |
64 |
|
[self timerStop]; |
63 |
65 |
|
|
64 |
|
- |
self.txtDuration.text =[NSString stringWithFormat:@"Durata %@",[DATAMANAGER getTime] ]; |
|
66 |
+ |
// self.txtDuration.text =[NSString stringWithFormat:@"Durata %@",[DATAMANAGER getTime] ]; |
65 |
67 |
|
|
66 |
68 |
|
// countTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self |
67 |
69 |
|
// selector:@selector(timeRun) |
|
@@ -133,6 +135,7 @@ |
133 |
135 |
|
|
134 |
136 |
|
if (![self.questionIndex isEqualToNumber:[NSNumber numberWithInteger:[self.routeForDetail.questions count]-1]]) { self.questionIndex = [NSNumber numberWithInt:[self.questionIndex intValue]+1]; |
135 |
137 |
|
self.percorsoQuestion = [self.routeForDetail.questions objectAtIndex:[self.questionIndex intValue]]; |
|
138 |
+ |
[self.questionImage setImageWithURL:[NSURL URLWithString:self.percorsoQuestion.fileImage]]; |
136 |
139 |
|
self.questionLabel.text = self.percorsoQuestion.label; |
137 |
140 |
|
|
138 |
141 |
|
[self playSoundWithPath:@"ticchettio" withLoop:YES]; |
|
@@ -143,7 +146,7 @@ |
143 |
146 |
|
} |
144 |
147 |
|
else{ |
145 |
148 |
|
[self playerStop]; |
146 |
|
- |
[DATAMANAGER saveTimerForRouteID:self.routeForDetail]; |
|
149 |
+ |
// [DATAMANAGER saveTimerForRouteID:self.routeForDetail]; |
147 |
150 |
|
FinalQuizVC *finalQuizVC = [[FinalQuizVC alloc] init]; |
148 |
151 |
|
finalQuizVC.routeForDetail = self.routeForDetail; |
149 |
152 |
|
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil]; |
|
@@ -159,6 +162,7 @@ |
159 |
162 |
|
if (![self.questionIndex isEqualToNumber:[NSNumber numberWithInteger:[self.routeForDetail.questions count]-1]]) { |
160 |
163 |
|
self.questionIndex = [NSNumber numberWithInt:[self.questionIndex intValue] +1]; |
161 |
164 |
|
self.percorsoQuestion = [self.routeForDetail.questions objectAtIndex:[self.questionIndex intValue]]; |
|
165 |
+ |
[self.questionImage setImageWithURL:[NSURL URLWithString:self.percorsoQuestion.fileImage]]; |
162 |
166 |
|
self.questionLabel.text = self.percorsoQuestion.label; |
163 |
167 |
|
[self.qTable reloadData]; |
164 |
168 |
|
[self.qTable setUserInteractionEnabled:YES]; |