title: UINavigationController Image Not centered on all Devices iOS
body: <p>I have a <code>UINavigationController</code> image that I'm setting in the <code>App Delegate</code>'s <code>didFinishLaunchingWithOptions</code> like this:    </p>
  
  <pre><code>var image: UIImage = UIImage(named: "Header")!
  UINavigationBar.appearance().setBackgroundImage(image, forBarMetrics: .Default)
  </code></pre>
  
  <p>The <code>Header</code> is the file in the <code>Assets.xcassets</code> with the 2x and 3x size images. I took out the 1x size because I read it was necessary and it wasn't making a difference either way. On an iPhone 6 the image is perfectly centered. While on a iPhone5 it's more to the right. When I put the above code in the viewDidLoad method in my file, I get a blank header. </p>
  
  <p>I also tried resizing the image: </p>
  
  <pre><code> var image: UIImage = UIImage(named: "Header")!
          image.resizableImageWithCapInsets(UIEdgeInsetsMake(0, -260, 0, 0))
          UINavigationBar.appearance().setBackgroundImage(image, forBarMetrics: .Default)
  </code></pre>
  
  <p>I even plugged in random numbers to see if anything changes and it doesn't. </p>
  
  <p>Anyone have any idea what to do? </p>
  
  <p>I referenced these links: </p>
  
  <ol>
  <li><p><a href="https://stackoverflow.com/questions/5992476/uinavigationbar-custom-title-position">UINavigationBar custom title position</a> </p></li>
  <li><p><a href="https://stackoverflow.com/questions/12797807/misaligned-title-in-uinavigationbar-since-ios6">Misaligned title in UINavigationBar since iOS6</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/27490730/center-uiimage-in-uinavigationcontroller">Center UIImage in UINavigationController</a></p></li>
  </ol>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Centering the UIImage on the NavigationBar still doesn't work on the iPhone5.</p>