title: Change size of viewing area after changing size of UINavigationBar and UITabBar
body: <p>I'm currently working on my very first app and I've changed the size of the UINavigationBar and UITabBar and now I have extra space black space in the general viewing area (etc. ViewController, DetailViewController). How can I change the viewing area to accommodate for this new size?</p>
  
  <p>I've pasted how I'm currently setting the new size for both UINavigationBar and the UITabBar.</p>
  
  <pre><code>/* Get the screenarea of the device */
  CGRect screenArea = [[UIScreen mainScreen] applicationFrame];
  
  /* Define the size of the navigation bar */
  CGRect viewHeaderbBarFrame = navigationBar.frame;
  viewHeaderbBarFrame.origin.y = screenArea.origin.y;
  viewHeaderbBarFrame.origin.x = screenArea.origin.x;
  viewHeaderbBarFrame.size.height = 44;
  viewHeaderbBarFrame.size.width = screenArea.size.width;
  navigationBar.frame = viewHeaderbBarFrame;
  
  /* Define the size of the footer bar */
  CGRect viewTabBarFrame = tabBar.frame;
  viewTabBarFrame.origin.y = screenArea.size.height - 26;
  viewTabBarFrame.origin.x = screenArea.origin.x;
  viewTabBarFrame.size.height = 46;
  viewTabBarFrame.size.width = screenArea.size.width;
  tabBar.frame = viewTabBarFrame;
  </code></pre>
  
  <p>Thanks.</p>