project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 6094 16b12a6417d1
parent 6093 42c9ac754460
child 6103 55ecfbf834e3
equal deleted inserted replaced
6093:42c9ac754460 6094:16b12a6417d1
   225             }
   225             }
   226             [self presentModalViewController:self.savedGamesViewController animated:YES];
   226             [self presentModalViewController:self.savedGamesViewController animated:YES];
   227             break;
   227             break;
   228         case 5:
   228         case 5:
   229             if (nil == self.missionsViewController) {
   229             if (nil == self.missionsViewController) {
   230                 MissionTrainingViewController *missions = [[MissionTrainingViewController alloc] initWithNibName:@"MissionTrainingViewController-iPad" bundle:nil];
   230                 xib = IS_IPAD() ? @"MissionTrainingViewController-iPad" : @"MissionTrainingViewController-iPhone";
   231                 missions.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
   231                 MissionTrainingViewController *missions = [[MissionTrainingViewController alloc] initWithNibName:xib bundle:nil];
       
   232                 missions.modalTransitionStyle = IS_IPAD() ? UIModalTransitionStyleCoverVertical : UIModalTransitionStyleCrossDissolve;
   232                 if ([missions respondsToSelector:@selector(setModalPresentationStyle:)])
   233                 if ([missions respondsToSelector:@selector(setModalPresentationStyle:)])
   233                     missions.modalPresentationStyle = UIModalPresentationPageSheet;
   234                     missions.modalPresentationStyle = UIModalPresentationPageSheet;
   234                 self.missionsViewController = missions;
   235                 self.missionsViewController = missions;
   235                 [missions release];
   236                 [missions release];
   236             }
   237             }