title: Resizing UITabBarController Child Views
body: <p>I'm sure this is a matter of me not knowing how to phrase my question, but I'm at a loss.</p>
  
  <p>I'm working on an app with 2 subviews that will be on the top of the screen at all times (taking up a total of 114 pixels including the status bar). I want the rest of the space to be taken up with a UITabBar and it's child views.</p>
  
  <p>The closest I've been able to get is a tab view that is sized correctly but is positioned at 0,0 so it's under my persistent subviews.</p>
  
  <pre><code>// Create the main toolbar
  toolbar = [[UIToolbar alloc] init];
  [toolbar sizeToFit];
  toolbar.frame = CGRectMake(0.0, 20, 768, 44);
  
  UILabel *textLabel = [[UILabel alloc] init];
  textLabel.frame = CGRectMake(240, 20, 300, 40);
  textLabel.textAlignment = UITextAlignmentCenter;
  textLabel.backgroundColor = [UIColor clearColor];
  textLabel.text = @"Character Name";
  [self.window addSubview:textLabel];
  [textLabel release];
  
  ...
  
  // Create the stats bar
  StatsViewController *statsView = [[StatsViewController alloc] init];
  statsView.view.frame = CGRectMake(0.0, 64, 768, 50);
  [self.window addSubview:statsView.view];
  
  // Create Tab Bar Controller and Tab View Controllers
  tabBarController = [[UITabBarController alloc] init];
  
  ...
  
  [self.window setRootViewController:tabBarController];
  [tabBarController release];
  
  [self.window addSubview:toolbar];
  [self.window bringSubviewToFront:statsView.view];
  [self.window bringSubviewToFront:textLabel];
  [self.window makeKeyAndVisible];
  return YES;
  </code></pre>