project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 4358 0445d807193e
parent 4287 7dbdc862097c
child 4463 1fe77f2bc1d1
--- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Thu Nov 25 02:45:52 2010 +0100
+++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sat Nov 27 23:29:07 2010 +0100
@@ -190,11 +190,11 @@
             if (nil == self.aboutViewController) {
                 AboutViewController *about = [[AboutViewController alloc] initWithNibName:@"AboutViewController" bundle:nil];
                 about.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
-                about.modalPresentationStyle = UIModalPresentationFormSheet;
+                if ([about respondsToSelector:@selector(setModalPresentationStyle:)])
+                     about.modalPresentationStyle = UIModalPresentationFormSheet;
                 self.aboutViewController = about;
                 [about release];
             }
-            
             [self presentModalViewController:self.aboutViewController animated:YES];
 #endif
             break;
@@ -202,7 +202,8 @@
             if (nil == self.savedGamesViewController) {
                 SavedGamesViewController *savedgames = [[SavedGamesViewController alloc] initWithNibName:@"SavedGamesViewController" bundle:nil];
                 savedgames.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
-                savedgames.modalPresentationStyle = UIModalPresentationPageSheet;
+                if ([savedgames respondsToSelector:@selector(setModalPresentationStyle:)])
+                    savedgames.modalPresentationStyle = UIModalPresentationPageSheet;
                 self.savedGamesViewController = savedgames;
                 [savedgames release];
             }