project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 3525 1d7b056ff866
parent 3522 156c04c6a3d8
child 3535 9e78c1f3d8d8
--- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sun Jun 20 18:35:59 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sun Jun 20 23:05:11 2010 +0200
@@ -101,18 +101,13 @@
 -(IBAction) switchViews:(id) sender {
     UIButton *button = (UIButton *)sender;
     UIAlertView *alert;
-    NSString *debugStr, *configNibName;
+    NSString *debugStr;
 
     switch (button.tag) {
         case 0:
-            // bug in UIModalTransitionStylePartialCurl, displays the controller awkwardly if it is not allocated every time
-            if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
-                configNibName = @"GameConfigViewController-iPad";
-            else
-                configNibName = @"GameConfigViewController-iPhone";
-            
-            gameConfigViewController = [[GameConfigViewController alloc] initWithNibName:configNibName bundle:nil];        
+            gameConfigViewController = [[GameConfigViewController alloc] initWithNibName:@"GameConfigViewController" bundle:nil];        
 #ifdef __IPHONE_3_2
+            // bug in UIModalTransitionStylePartialCurl, displays the controller awkwardly if it is not allocated every time            
             if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
                 gameConfigViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl;
 #endif