diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2011-08-01 13:03:27 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2011-08-01 13:03:27 -0400 |
commit | 0a8fed12704bf343ad9604f964b71b3f50495382 (patch) | |
tree | 7985c7c22a557b9f9ddceb3089311aa1b4f93c4a | |
parent | 9cd57b731ab1c666d4a1cb725538fdc137763d12 (diff) | |
download | cartcollect-0a8fed12704bf343ad9604f964b71b3f50495382.tar.gz cartcollect-0a8fed12704bf343ad9604f964b71b3f50495382.tar.bz2 cartcollect-0a8fed12704bf343ad9604f964b71b3f50495382.zip |
Fixed highscore viewer bug
For some reason, the cocos2d controller doesn't like being set as the root view controller, it just likes having its view added to the window as a subview, so that is now what is done. Fixes #191
-rwxr-xr-x | Classes/HighscoreListController.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Classes/HighscoreListController.m b/Classes/HighscoreListController.m index 9980727..4d108e4 100755 --- a/Classes/HighscoreListController.m +++ b/Classes/HighscoreListController.m | |||
@@ -291,7 +291,8 @@ | |||
291 | - (void)back | 291 | - (void)back |
292 | { | 292 | { |
293 | RootViewController* viewController = [[[UIApplication sharedApplication] delegate] viewController]; | 293 | RootViewController* viewController = [[[UIApplication sharedApplication] delegate] viewController]; |
294 | [[[[UIApplication sharedApplication] delegate] window] setRootViewController:viewController]; | 294 | [[[[UIApplication sharedApplication] delegate] window] setRootViewController:nil]; |
295 | [[[[UIApplication sharedApplication] delegate] window] addSubview:viewController.view]; | ||
295 | } | 296 | } |
296 | 297 | ||
297 | - (void)switchLists:(id)sender | 298 | - (void)switchLists:(id)sender |