From 0a8fed12704bf343ad9604f964b71b3f50495382 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Mon, 1 Aug 2011 13:03:27 -0400 Subject: 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 --- Classes/HighscoreListController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ - (void)back { RootViewController* viewController = [[[UIApplication sharedApplication] delegate] viewController]; - [[[[UIApplication sharedApplication] delegate] window] setRootViewController:viewController]; + [[[[UIApplication sharedApplication] delegate] window] setRootViewController:nil]; + [[[[UIApplication sharedApplication] delegate] window] addSubview:viewController.view]; } - (void)switchLists:(id)sender -- cgit 1.4.1