project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 3616 85d69ddb41b6
parent 3547 02875b1145b7
child 3621 a8ddf681ba7d
equal deleted inserted replaced
3615:b78d7959540a 3616:85d69ddb41b6
   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 
   109 
   110             // bug in UIModalTransitionStylePartialCurl, displays the controller awkwardly if it is not allocated every time            
       
   111             if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
       
   112                 gameConfigViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl;
       
   113             [self presentModalViewController:gameConfigViewController animated:YES];
   110             [self presentModalViewController:gameConfigViewController animated:YES];
   114             break;
   111             break;
   115         case 2:
   112         case 2:
   116             if (nil == settingsViewController) {
   113             if (nil == settingsViewController) {
   117                 settingsViewController = [[SplitViewRootController alloc] initWithNibName:nil bundle:nil];
   114                 settingsViewController = [[SplitViewRootController alloc] initWithNibName:nil bundle:nil];