title: iPhone X Tab Bar and Nav Bar Issue
body: <p>I have this complete app build programmatically right from beginning. The project was started on an old Xcode may be Xcode 6. I am currently building on Xcode 6. My Project has Objective-C and Swift files communicating with each other. The problem I am having is because it is built programmatically, I cannot just go into the storyboard and set use safe areas layout.</p>
  
  <p>My Tab Bar Images on Xcode 9.2 are going crazy and also the nav bar. I want to fix the images as well as height of the tab bar.</p>
  
  <p><a href="https://i.stack.imgur.com/RpKYG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RpKYG.png" alt="enter image description here"></a></p>
  
  <p>Here is the code in AppDelegate for adding tabbarcontroller.</p>
  
  <pre><code>- (void)setupView {
  
      UIViewController *firstViewController = [[UIViewController alloc]init];
      firstViewController.view.backgroundColor = UIColor.redColor;
      firstViewController.title = @"First View";
      firstViewController.tabBarItem = [[UITabBarItem alloc]initWithTabBarSystemItem:UITabBarSystemItemSearch tag:0];
      UINavigationController *firstNavController = [[UINavigationController alloc] initWithRootViewController:firstViewController];
  
      UIViewController *secondViewController = [[UIViewController alloc]init];
      secondViewController.view.backgroundColor = UIColor.blueColor;
      secondViewController.title = @"Second View";
      secondViewController.tabBarItem = [[UITabBarItem alloc]initWithTabBarSystemItem:UITabBarSystemItemFavorites tag:1];
      UINavigationController *secondNavController = [[UINavigationController alloc] initWithRootViewController:secondViewController];
  
      UIViewController *thirdViewController = [[UIViewController alloc]init];
      thirdViewController.view.backgroundColor = UIColor.purpleColor;
      thirdViewController.title = @"Third View";
      thirdViewController.tabBarItem = [[UITabBarItem alloc]initWithTabBarSystemItem:UITabBarSystemItemRecents tag:2];
      UINavigationController *thirdNavController = [[UINavigationController alloc]initWithRootViewController:thirdViewController];
  
      UIViewController *fourthViewController = [[UIViewController alloc]init];
      fourthViewController.view.backgroundColor = UIColor.greenColor;
      fourthViewController.title = @"Fourth View";
      fourthViewController.tabBarItem = [[UITabBarItem alloc]initWithTabBarSystemItem:UITabBarSystemItemHistory tag:2];
      UINavigationController *fourthNavController = [[UINavigationController alloc]initWithRootViewController:fourthViewController];
  
      tabBarController = [[UITabBarController alloc] initWithNibName:nil bundle:nil];
      [tabBarController.tabBar invalidateIntrinsicContentSize];
      tabBarController.viewControllers = [[NSArray alloc] initWithObjects:firstNavController, secondNavController, thirdNavController, fourthNavController, nil];
      tabBarController.delegate = self;
      [tabBarController.view setNeedsLayout];
  
      self.window.rootViewController = tabBarController;
      [self.window makeKeyAndVisible];
  }
  </code></pre>
  
  <p>I have added the iPhone X Splash screen which made the complete app to go 
  I have researched enough but not able to find a solution.</p>