diff -r 6592fbb969da -r 1d7b056ff866 project_files/HedgewarsMobile/Classes/MainMenuViewController.m --- 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