project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 3535 9e78c1f3d8d8
parent 3525 1d7b056ff866
child 3546 ccf4854df294
equal deleted inserted replaced
3534:51521238724f 3535:9e78c1f3d8d8
   104     NSString *debugStr;
   104     NSString *debugStr;
   105 
   105 
   106     switch (button.tag) {
   106     switch (button.tag) {
   107         case 0:
   107         case 0:
   108             gameConfigViewController = [[GameConfigViewController alloc] initWithNibName:@"GameConfigViewController" bundle:nil];        
   108             gameConfigViewController = [[GameConfigViewController alloc] initWithNibName:@"GameConfigViewController" bundle:nil];        
   109 #ifdef __IPHONE_3_2
   109 
   110             // bug in UIModalTransitionStylePartialCurl, displays the controller awkwardly if it is not allocated every time            
   110             // bug in UIModalTransitionStylePartialCurl, displays the controller awkwardly if it is not allocated every time            
   111             if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
   111             if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
   112                 gameConfigViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl;
   112                 gameConfigViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl;
   113 #endif
       
   114             [self presentModalViewController:gameConfigViewController animated:YES];
   113             [self presentModalViewController:gameConfigViewController animated:YES];
   115             break;
   114             break;
   116         case 2:
   115         case 2:
   117             if (nil == settingsViewController) {
   116             if (nil == settingsViewController) {
   118                 settingsViewController = [[SplitViewRootController alloc] initWithNibName:nil bundle:nil];
   117                 settingsViewController = [[SplitViewRootController alloc] initWithNibName:nil bundle:nil];