project_files/HedgewarsMobile/Classes/MasterViewController.m
changeset 3996 eb549fd864a5
parent 3971 5c82ee165ed5
child 4115 222b8016c773
equal deleted inserted replaced
3995:360332f8785f 3996:eb549fd864a5
    50                                                       nil];
    50                                                       nil];
    51     self.controllerNames = array;
    51     self.controllerNames = array;
    52     [array release];
    52     [array release];
    53 
    53 
    54     // targetControllers tells whether we're on the right or left side of the splitview -- on iphone we only use the right side
    54     // targetControllers tells whether we're on the right or left side of the splitview -- on iphone we only use the right side
    55     if (targetController == nil && UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
    55     if (targetController == nil && IS_IPAD()) {
    56         if (nil == generalSettingsViewController)
    56         if (nil == generalSettingsViewController)
    57             generalSettingsViewController = [[GeneralSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
    57             generalSettingsViewController = [[GeneralSettingsViewController alloc] initWithStyle:UITableViewStyleGrouped];
    58         generalSettingsViewController.navigationItem.hidesBackButton = YES;
    58         generalSettingsViewController.navigationItem.hidesBackButton = YES;
    59         [generalSettingsViewController viewWillAppear:YES];
    59         [generalSettingsViewController viewWillAppear:YES];
    60         [self.navigationController pushViewController:generalSettingsViewController animated:NO];
    60         [self.navigationController pushViewController:generalSettingsViewController animated:NO];