project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 4358 0445d807193e
parent 4287 7dbdc862097c
child 4463 1fe77f2bc1d1
equal deleted inserted replaced
4356:d1d26f8963a3 4358:0445d807193e
   188             [scroll release];
   188             [scroll release];
   189 #else
   189 #else
   190             if (nil == self.aboutViewController) {
   190             if (nil == self.aboutViewController) {
   191                 AboutViewController *about = [[AboutViewController alloc] initWithNibName:@"AboutViewController" bundle:nil];
   191                 AboutViewController *about = [[AboutViewController alloc] initWithNibName:@"AboutViewController" bundle:nil];
   192                 about.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
   192                 about.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
   193                 about.modalPresentationStyle = UIModalPresentationFormSheet;
   193                 if ([about respondsToSelector:@selector(setModalPresentationStyle:)])
       
   194                      about.modalPresentationStyle = UIModalPresentationFormSheet;
   194                 self.aboutViewController = about;
   195                 self.aboutViewController = about;
   195                 [about release];
   196                 [about release];
   196             }
   197             }
   197             
       
   198             [self presentModalViewController:self.aboutViewController animated:YES];
   198             [self presentModalViewController:self.aboutViewController animated:YES];
   199 #endif
   199 #endif
   200             break;
   200             break;
   201         case 4:
   201         case 4:
   202             if (nil == self.savedGamesViewController) {
   202             if (nil == self.savedGamesViewController) {
   203                 SavedGamesViewController *savedgames = [[SavedGamesViewController alloc] initWithNibName:@"SavedGamesViewController" bundle:nil];
   203                 SavedGamesViewController *savedgames = [[SavedGamesViewController alloc] initWithNibName:@"SavedGamesViewController" bundle:nil];
   204                 savedgames.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
   204                 savedgames.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
   205                 savedgames.modalPresentationStyle = UIModalPresentationPageSheet;
   205                 if ([savedgames respondsToSelector:@selector(setModalPresentationStyle:)])
       
   206                     savedgames.modalPresentationStyle = UIModalPresentationPageSheet;
   206                 self.savedGamesViewController = savedgames;
   207                 self.savedGamesViewController = savedgames;
   207                 [savedgames release];
   208                 [savedgames release];
   208             }
   209             }
   209             
   210             
   210             [self presentModalViewController:self.savedGamesViewController animated:YES];
   211             [self presentModalViewController:self.savedGamesViewController animated:YES];