project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 3623 f14db208f2fa
parent 3619 1155d8970646
child 3625 9f1d79e01a60
equal deleted inserted replaced
3622:24c4726b1019 3623:f14db208f2fa
   155     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
   155     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
   156         if (mapConfigViewController == nil)
   156         if (mapConfigViewController == nil)
   157             mapConfigViewController = [[MapConfigViewController alloc] initWithNibName:@"MapConfigViewController-iPad" bundle:nil];
   157             mapConfigViewController = [[MapConfigViewController alloc] initWithNibName:@"MapConfigViewController-iPad" bundle:nil];
   158         if (teamConfigViewController == nil)
   158         if (teamConfigViewController == nil)
   159             teamConfigViewController = [[TeamConfigViewController alloc] initWithStyle:UITableViewStylePlain];
   159             teamConfigViewController = [[TeamConfigViewController alloc] initWithStyle:UITableViewStylePlain];
   160         teamConfigViewController.view.frame = CGRectMake(0, 224, 300, 500);
   160         teamConfigViewController.view.frame = CGRectMake(0, 224, 300, 472);
   161         teamConfigViewController.view.backgroundColor = [UIColor clearColor];
   161         teamConfigViewController.view.backgroundColor = [UIColor clearColor];
   162         [mapConfigViewController.view addSubview:teamConfigViewController.view];
   162         [mapConfigViewController.view addSubview:teamConfigViewController.view];
   163         if (schemeWeaponConfigViewController == nil)
   163         if (schemeWeaponConfigViewController == nil)
   164             schemeWeaponConfigViewController = [[SchemeWeaponConfigViewController alloc] initWithStyle:UITableViewStyleGrouped];
   164             schemeWeaponConfigViewController = [[SchemeWeaponConfigViewController alloc] initWithStyle:UITableViewStyleGrouped];
   165         schemeWeaponConfigViewController.view.frame = CGRectMake(362, 224, 300, 500);
   165         schemeWeaponConfigViewController.view.frame = CGRectMake(362, 224, 300, 472);
   166         [mapConfigViewController.view addSubview:schemeWeaponConfigViewController.view];
   166         [mapConfigViewController.view addSubview:schemeWeaponConfigViewController.view];
   167         for (UIView *oneView in self.view.subviews) {
   167         for (UIView *oneView in self.view.subviews) {
   168             if ([oneView isMemberOfClass:[UIToolbar class]]) {
   168             if ([oneView isMemberOfClass:[UIToolbar class]]) {
   169                 [[oneView viewWithTag:12345] setHidden:YES];
   169                 [[oneView viewWithTag:12345] setHidden:YES];
   170                 break;
   170                 break;