project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 3703 12d17c6e8855
parent 3697 d5b30d6373fc
child 3705 e1959819a542
equal deleted inserted replaced
3701:8c449776ebe6 3703:12d17c6e8855
   196 
   196 
   197     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
   197     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
   198         if (mapConfigViewController == nil)
   198         if (mapConfigViewController == nil)
   199             mapConfigViewController = [[MapConfigViewController alloc] initWithNibName:@"MapConfigViewController-iPad" bundle:nil];
   199             mapConfigViewController = [[MapConfigViewController alloc] initWithNibName:@"MapConfigViewController-iPad" bundle:nil];
   200         if (teamConfigViewController == nil)
   200         if (teamConfigViewController == nil)
   201             teamConfigViewController = [[TeamConfigViewController alloc] initWithStyle:UITableViewStylePlain];
   201             teamConfigViewController = [[TeamConfigViewController alloc] initWithStyle:UITableViewStyleGrouped];
   202         teamConfigViewController.view.frame = CGRectMake(3, 224, 300, 472);
   202         teamConfigViewController.view.frame = CGRectMake(10, 225, 300, 470);
   203         teamConfigViewController.view.backgroundColor = [UIColor clearColor];
   203         teamConfigViewController.view.backgroundColor = [UIColor clearColor];
   204         [mapConfigViewController.view addSubview:teamConfigViewController.view];
   204         [mapConfigViewController.view addSubview:teamConfigViewController.view];
   205         if (schemeWeaponConfigViewController == nil)
   205         if (schemeWeaponConfigViewController == nil)
   206             schemeWeaponConfigViewController = [[SchemeWeaponConfigViewController alloc] initWithStyle:UITableViewStyleGrouped];
   206             schemeWeaponConfigViewController = [[SchemeWeaponConfigViewController alloc] initWithStyle:UITableViewStyleGrouped];
   207         schemeWeaponConfigViewController.view.frame = CGRectMake(362, 224, 300, 472);
   207         schemeWeaponConfigViewController.view.frame = CGRectMake(362, 230, 300, 470);
   208         [mapConfigViewController.view addSubview:schemeWeaponConfigViewController.view];
   208         [mapConfigViewController.view addSubview:schemeWeaponConfigViewController.view];
   209         for (UIView *oneView in self.view.subviews) {
   209         for (UIView *oneView in self.view.subviews) {
   210             if ([oneView isMemberOfClass:[UIToolbar class]]) {
   210             if ([oneView isMemberOfClass:[UIToolbar class]]) {
   211                 [[oneView viewWithTag:12345] setHidden:YES];
   211                 [oneView setHidden:YES];
   212                 break;
   212                 break;
   213             }
   213             }
   214         }
   214         }
   215     } else {
   215     } else {
   216         // this is the visible controller
   216         // this is the visible controller