Nextrek
Diff Revisions
529
vs
530
for /iOS/SafariArte/trunk/SafariArte/Controllers/RoutesVC/RoutesVC.m
|
@@ -160,16 +160,15 @@ |
160 |
160 |
|
cell.priceValue.text = @""; |
161 |
161 |
|
cell.priceValue.textColor = [UIColor blackColor]; |
162 |
162 |
|
|
163 |
|
- |
if ([[DATAMANAGER poiForRoute:route] intValue] >0 && [[DATAMANAGER poiForRoute:route] intValue]<route.routePois.count) |
164 |
|
- |
|
165 |
|
- |
{ |
|
163 |
+ |
if ([[DATAMANAGER poiForRoute:route] intValue] > 0 && [[DATAMANAGER poiForRoute:route] intValue] < route.routePois.count) { |
166 |
164 |
|
cell.buyLabel.text = NSLocalizedString(@"Iniziato", nil); |
167 |
165 |
|
|
168 |
|
- |
}else if ( route.routePois.count==[[DATAMANAGER poiForRoute:route] intValue]) |
169 |
|
- |
{ |
|
166 |
+ |
} |
|
167 |
+ |
else if (route.routePois.count == [[DATAMANAGER poiForRoute:route] intValue]) { |
170 |
168 |
|
cell.buyLabel.text = NSLocalizedString(@"Completato", nil); |
171 |
169 |
|
|
172 |
|
- |
} else if([[DATAMANAGER poiForRoute:route] intValue] == 0){ |
|
170 |
+ |
} |
|
171 |
+ |
else if([[DATAMANAGER poiForRoute:route] intValue] == 0) { |
173 |
172 |
|
|
174 |
173 |
|
cell.priceValue.text = route.routePrice; |
175 |
174 |
|
cell.priceValue.textColor = [UIColor blackColor]; |
|
@@ -182,10 +181,7 @@ |
182 |
181 |
|
[cell.buyImageView setImage:[UIImage imageNamed:@"buy_background"]]; |
183 |
182 |
|
} |
184 |
183 |
|
|
185 |
|
- |
|
186 |
184 |
|
[cell.buyImageView setImage:[UIImage imageNamed:@"buyed_background"]]; |
187 |
|
- |
|
188 |
|
- |
|
189 |
185 |
|
} |
190 |
186 |
|
else { |
191 |
187 |
|
cell.priceValue.text = route.routePrice; |