title: Setting a Custom Image for a Back Button on UINavigationBar
body: <p>I am trying to set a custom image for the back button that automatically gets place onto a navigation bar when a new view is pushed onto the stack. </p>
  
  <p>I have tried adding the following in the viewDidLoad of the parent viewController:</p>
  
  <pre><code>[[UIBarButtonItem appearance] setBackButtonBackgroundImage:[UIImage imageNamed:@"BackButton.png"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
  </code></pre>
  
  <p>I have also tried the following:</p>
  
  <pre><code>UIBarButtonItem *btn = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"BackButton.png"] style:UIBarButtonItemStyleBordered target:nil action:nil];
      self.navigationItem.backBarButtonItem = btn;
  </code></pre>
  
  <p>Using UIAppearance produces quite strange results:
  <img src="https://i.stack.imgur.com/o2O9l.png" alt="The BackButton image seems to be placed underneath the original title"></p>