equal
deleted
inserted
replaced
19 */ |
19 */ |
20 |
20 |
21 |
21 |
22 #import "SingleSchemeViewController.h" |
22 #import "SingleSchemeViewController.h" |
23 #import <QuartzCore/QuartzCore.h> |
23 #import <QuartzCore/QuartzCore.h> |
24 #import "CommodityFunctions.h" |
24 |
25 #import "UIImageExtra.h" |
|
26 |
25 |
27 #define LABEL_TAG 12345 |
26 #define LABEL_TAG 12345 |
28 #define SLIDER_TAG 54321 |
27 #define SLIDER_TAG 54321 |
29 #define SWITCH_TAG 67890 |
28 #define SWITCH_TAG 67890 |
30 |
29 |
233 |
232 |
234 UIImage *image = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/btn%@.png",ICONS_DIRECTORY(), |
233 UIImage *image = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/btn%@.png",ICONS_DIRECTORY(), |
235 [[self.gameModifierArray objectAtIndex:row] objectForKey:@"image"]]]; |
234 [[self.gameModifierArray objectAtIndex:row] objectForKey:@"image"]]]; |
236 cell.imageView.image = image; |
235 cell.imageView.image = image; |
237 [image release]; |
236 [image release]; |
238 [cell.imageView.layer setCornerRadius:7.0f]; |
237 cell.imageView.layer.cornerRadius = 6.0f; |
239 [cell.imageView.layer setMasksToBounds:YES]; |
238 cell.imageView.layer.masksToBounds = YES; |
240 cell.textLabel.text = [[self.gameModifierArray objectAtIndex:row] objectForKey:@"title"]; |
239 cell.textLabel.text = [[self.gameModifierArray objectAtIndex:row] objectForKey:@"title"]; |
241 cell.detailTextLabel.text = [[self.gameModifierArray objectAtIndex:row] objectForKey:@"description"]; |
240 cell.detailTextLabel.text = [[self.gameModifierArray objectAtIndex:row] objectForKey:@"description"]; |
242 cell.detailTextLabel.adjustsFontSizeToFitWidth = YES; |
241 cell.detailTextLabel.adjustsFontSizeToFitWidth = YES; |
243 cell.detailTextLabel.minimumFontSize = 6; |
242 cell.detailTextLabel.minimumFontSize = 6; |
244 |
243 |