diff -r 224c31b3ce7d -r c228a4841e3f project_files/HedgewarsMobile/Classes/GameConfigViewController.m --- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m Fri Dec 31 00:10:38 2010 +0100 +++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m Fri Dec 31 01:15:43 2010 +0100 @@ -232,25 +232,25 @@ [NSNumber numberWithBool:NO],@"netgame", @"",@"savefile", nil]; - if (IS_IPAD()) - [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary]; - else { - // this causes a sporadic crash on the ipad but without this rotation doesn't work on iphone - StatsPageViewController *statsPage = [[StatsPageViewController alloc] initWithStyle:UITableViewStyleGrouped]; - [self presentModalViewController:statsPage animated:NO]; + + + StatsPageViewController *statsPage = [[StatsPageViewController alloc] initWithStyle:UITableViewStyleGrouped]; + statsPage.modalTransitionStyle = UIModalTransitionStyleCoverVertical; + if ([statsPage respondsToSelector:@selector(setModalPresentationStyle:)]) + statsPage.modalPresentationStyle = UIModalPresentationPageSheet; + [self presentModalViewController:statsPage animated:NO]; - NSArray *stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary]; - if ([stats count] == 0) - [statsPage dismissModalViewControllerAnimated:NO]; - else { - statsPage.statsArray = stats; - [statsPage.tableView reloadData]; - [statsPage viewWillAppear:YES]; - } - - [statsPage release]; + NSArray *stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary]; + if ([stats count] == 0) + [statsPage dismissModalViewControllerAnimated:NO]; + else { + statsPage.statsArray = stats; + [statsPage.tableView reloadData]; + [statsPage viewWillAppear:YES]; } + + [statsPage release]; } -(void) loadNiceHogs {