summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2011-08-01 13:03:27 -0400
committerStarla Insigna <hatkirby@fourisland.com>2011-08-01 13:03:27 -0400
commit0a8fed12704bf343ad9604f964b71b3f50495382 (patch)
tree7985c7c22a557b9f9ddceb3089311aa1b4f93c4a
parent9cd57b731ab1c666d4a1cb725538fdc137763d12 (diff)
downloadcartcollect-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-xClasses/HighscoreListController.m3
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