project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 6094 16b12a6417d1
parent 6093 42c9ac754460
child 6103 55ecfbf834e3
--- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sat Oct 08 00:04:18 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sat Oct 08 02:57:30 2011 +0200
@@ -227,8 +227,9 @@
             break;
         case 5:
             if (nil == self.missionsViewController) {
-                MissionTrainingViewController *missions = [[MissionTrainingViewController alloc] initWithNibName:@"MissionTrainingViewController-iPad" bundle:nil];
-                missions.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
+                xib = IS_IPAD() ? @"MissionTrainingViewController-iPad" : @"MissionTrainingViewController-iPhone";
+                MissionTrainingViewController *missions = [[MissionTrainingViewController alloc] initWithNibName:xib bundle:nil];
+                missions.modalTransitionStyle = IS_IPAD() ? UIModalTransitionStyleCoverVertical : UIModalTransitionStyleCrossDissolve;
                 if ([missions respondsToSelector:@selector(setModalPresentationStyle:)])
                     missions.modalPresentationStyle = UIModalPresentationPageSheet;
                 self.missionsViewController = missions;