diff options
Diffstat (limited to 'Classes/MainMenuLayer.m')
| -rwxr-xr-x | Classes/MainMenuLayer.m | 7 |
1 files changed, 5 insertions, 2 deletions
| diff --git a/Classes/MainMenuLayer.m b/Classes/MainMenuLayer.m index ac7f4a7..11cffd7 100755 --- a/Classes/MainMenuLayer.m +++ b/Classes/MainMenuLayer.m | |||
| @@ -7,7 +7,9 @@ | |||
| 7 | // | 7 | // |
| 8 | 8 | ||
| 9 | #import "MainMenuLayer.h" | 9 | #import "MainMenuLayer.h" |
| 10 | 10 | #import "HighscoreListController.h" | |
| 11 | #import "GameLayer.h" | ||
| 12 | #import "Cart_CollectAppDelegate.h" | ||
| 11 | 13 | ||
| 12 | @implementation MainMenuLayer | 14 | @implementation MainMenuLayer |
| 13 | 15 | ||
| @@ -61,7 +63,8 @@ | |||
| 61 | - (void)highscores | 63 | - (void)highscores |
| 62 | { | 64 | { |
| 63 | HighscoreListController* listController = [[HighscoreListController alloc] initWithStyle:UITableViewStylePlain]; | 65 | HighscoreListController* listController = [[HighscoreListController alloc] initWithStyle:UITableViewStylePlain]; |
| 64 | [[[[UIApplication sharedApplication] delegate] window] setRootViewController:listController]; | 66 | Cart_CollectAppDelegate* appDelegate = ((Cart_CollectAppDelegate*) [[UIApplication sharedApplication] delegate]); |
| 67 | [[appDelegate window] setRootViewController:listController]; | ||
| 65 | [listController release]; | 68 | [listController release]; |
| 66 | } | 69 | } |
| 67 | 70 | ||
