|
3 | 3 | #import "../Util/UIImageManager.h"
|
4 | 4 | #import "../iCodeAppDelegate.h"
|
5 | 5 | #import "CompilerViewController.h"
|
| 6 | +#import "../Util/VersionCheck.h" |
6 | 7 | //#import "../Compiler/CompilerTools.h"
|
7 | 8 |
|
8 | 9 | @implementation BuildOptionsActionSheet
|
@@ -40,24 +41,42 @@ - (id)initForViewController:(UIViewController*)viewCtrl
|
40 | 41 | buildAndRunIndex = 4;
|
41 | 42 | }
|
42 | 43 |
|
| 44 | + BOOL buttonIcons = YES; |
| 45 | + if(!SYSTEM_VERSION_GREATER_THAN(@"7.2.1")) |
| 46 | + { |
| 47 | + buttonIcons = NO; |
| 48 | + } |
| 49 | + |
43 | 50 | [self addButtonWithTitle:@"Build"];
|
44 |
| - [UIImageManager loadImage:@"Images/build.png"]; |
45 |
| - [[[self valueForKey:@"_buttons"] objectAtIndex:buildIndex] setImage:[UIImageManager getImage:@"Images/build.png"] forState:UIControlStateNormal]; |
| 51 | + if(buttonIcons) |
| 52 | + { |
| 53 | + [UIImageManager loadImage:@"Images/build.png"]; |
| 54 | + [[[self valueForKey:@"_buttons"] objectAtIndex:buildIndex] setImage:[UIImageManager getImage:@"Images/build.png"] forState:UIControlStateNormal]; |
| 55 | + } |
46 | 56 |
|
47 | 57 | if(projType==PROJECTTYPE_APPLICATION || projType==PROJECTTYPE_CONSOLE)
|
48 | 58 | {
|
49 | 59 | [self addButtonWithTitle:@"Build and Run"];
|
50 |
| - [UIImageManager loadImage:@"Images/buildandrun.png"]; |
51 |
| - [[[self valueForKey:@"_buttons"] objectAtIndex:buildAndRunIndex] setImage:[UIImageManager getImage:@"Images/buildandrun.png"] forState:UIControlStateNormal]; |
| 60 | + if(buttonIcons) |
| 61 | + { |
| 62 | + [UIImageManager loadImage:@"Images/buildandrun.png"]; |
| 63 | + [[[self valueForKey:@"_buttons"] objectAtIndex:buildAndRunIndex] setImage:[UIImageManager getImage:@"Images/buildandrun.png"] forState:UIControlStateNormal]; |
| 64 | + } |
52 | 65 | }
|
53 | 66 |
|
54 | 67 | [self addButtonWithTitle:@"Clean"];
|
55 |
| - [UIImageManager loadImage:@"Images/clean.png"]; |
56 |
| - [[[self valueForKey:@"_buttons"] objectAtIndex:cleanIndex] setImage:[UIImageManager getImage:@"Images/clean.png"] forState:UIControlStateNormal]; |
| 68 | + if(buttonIcons) |
| 69 | + { |
| 70 | + [UIImageManager loadImage:@"Images/clean.png"]; |
| 71 | + [[[self valueForKey:@"_buttons"] objectAtIndex:cleanIndex] setImage:[UIImageManager getImage:@"Images/clean.png"] forState:UIControlStateNormal]; |
| 72 | + } |
57 | 73 |
|
58 | 74 | [self addButtonWithTitle:@"Results"];
|
59 |
| - [UIImageManager loadImage:@"Images/results.png"]; |
60 |
| - [[[self valueForKey:@"_buttons"] objectAtIndex:resultsIndex] setImage:[UIImageManager getImage:@"Images/results.png"] forState:UIControlStateNormal]; |
| 75 | + if(buttonIcons) |
| 76 | + { |
| 77 | + [UIImageManager loadImage:@"Images/results.png"]; |
| 78 | + [[[self valueForKey:@"_buttons"] objectAtIndex:resultsIndex] setImage:[UIImageManager getImage:@"Images/results.png"] forState:UIControlStateNormal]; |
| 79 | + } |
61 | 80 |
|
62 | 81 | [self addButtonWithTitle:@"Cancel"];
|
63 | 82 | self.cancelButtonIndex = cancelIndex;
|
|
0 commit comments