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; |