equal
deleted
inserted
replaced
27 #import "MissionTrainingViewController.h" |
27 #import "MissionTrainingViewController.h" |
28 #import "Appirater.h" |
28 #import "Appirater.h" |
29 #import "ServerProtocolNetwork.h" |
29 #import "ServerProtocolNetwork.h" |
30 #import "GameInterfaceBridge.h" |
30 #import "GameInterfaceBridge.h" |
31 |
31 |
|
32 @interface MainMenuViewController () |
|
33 @property (retain, nonatomic) IBOutlet UIButton *simpleGameButton; |
|
34 @property (retain, nonatomic) IBOutlet UIButton *missionsButton; |
|
35 @end |
32 |
36 |
33 @implementation MainMenuViewController |
37 @implementation MainMenuViewController |
34 @synthesize gameConfigViewController, settingsViewController, aboutViewController, savedGamesViewController, |
38 @synthesize gameConfigViewController, settingsViewController, aboutViewController, savedGamesViewController, |
35 restoreViewController, missionsViewController; |
39 restoreViewController, missionsViewController; |
36 |
40 |
40 |
44 |
41 #pragma mark - |
45 #pragma mark - |
42 -(void) viewDidLoad { |
46 -(void) viewDidLoad { |
43 self.view.frame = [[UIScreen mainScreen] safeBounds]; |
47 self.view.frame = [[UIScreen mainScreen] safeBounds]; |
44 [super viewDidLoad]; |
48 [super viewDidLoad]; |
45 |
49 |
|
50 [self.simpleGameButton applyDarkBlueQuickStyle]; |
|
51 [self.missionsButton applyDarkBlueQuickStyle]; |
|
52 |
46 // get the app's version |
53 // get the app's version |
47 NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleVersionKey]; |
54 NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleVersionKey]; |
48 |
55 |
49 // get the version number that we've been tracking |
56 // get the version number that we've been tracking |
50 NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; |
57 NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; |
241 releaseAndNil(gameConfigViewController); |
248 releaseAndNil(gameConfigViewController); |
242 releaseAndNil(aboutViewController); |
249 releaseAndNil(aboutViewController); |
243 releaseAndNil(savedGamesViewController); |
250 releaseAndNil(savedGamesViewController); |
244 releaseAndNil(restoreViewController); |
251 releaseAndNil(restoreViewController); |
245 releaseAndNil(missionsViewController); |
252 releaseAndNil(missionsViewController); |
|
253 [_simpleGameButton release]; |
|
254 [_missionsButton release]; |
246 [super dealloc]; |
255 [super dealloc]; |
247 } |
256 } |
248 |
257 |
249 @end |
258 @end |