project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 4912 862b134284b2
parent 4861 91f889289a47
child 4976 088d40d8aba2
equal deleted inserted replaced
4911:5d10bd725efe 4912:862b134284b2
   237     // also modify SavedGamesViewController.m
   237     // also modify SavedGamesViewController.m
   238     StatsPageViewController *statsPage = [[StatsPageViewController alloc] initWithStyle:UITableViewStyleGrouped];
   238     StatsPageViewController *statsPage = [[StatsPageViewController alloc] initWithStyle:UITableViewStyleGrouped];
   239     statsPage.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
   239     statsPage.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
   240     if ([statsPage respondsToSelector:@selector(setModalPresentationStyle:)])
   240     if ([statsPage respondsToSelector:@selector(setModalPresentationStyle:)])
   241         statsPage.modalPresentationStyle = UIModalPresentationPageSheet;
   241         statsPage.modalPresentationStyle = UIModalPresentationPageSheet;
   242     // avoid showing the stat page immediately, but wait for 3 seconds
   242 
   243     [self performSelector:@selector(presentModalViewController:animated:) withObject:statsPage afterDelay:3];
   243     NSArray *stats;
   244 
   244     if (IS_DUALHEAD()) {
   245     NSArray *stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
   245         stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
       
   246         [self presentModalViewController:statsPage animated:NO];
       
   247     } else {
       
   248         [self performSelector:@selector(presentModalViewController:animated:) withObject:statsPage afterDelay:3];
       
   249         stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary];
       
   250     }
       
   251 
   246     if ([stats count] <= 1) {
   252     if ([stats count] <= 1) {
   247         DLog(@"%@",stats);
   253         DLog(@"%@",stats);
   248         [statsPage dismissModalViewControllerAnimated:NO];
   254         [statsPage dismissModalViewControllerAnimated:NO];
   249     } else {
   255     } else {
   250         statsPage.statsArray = stats;
   256         statsPage.statsArray = stats;