title: iOS 7 custom back button
body: <p>I want to use custom back button. in iOS 6 everything is perfect but <code>iOS 7</code> is strange.</p>
  
  <pre><code>[[UIBarButtonItem appearance] setBackButtonBackgroundImage:[[UIImage imageNamed:@"back_button_normal"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 12.0, 0, 12.0)] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
  </code></pre>
  
  <p>first, it has no iOS 7 arrow and no background image.</p>
  
  <p>(Russian locale)</p>
  
  <p><img src="https://i.stack.imgur.com/AsrXh.png" alt="initial state"></p>
  
  <p>then, if you press the button background image appears. Also i had background image set for <code>UIControlStateHighlighted</code> state and when you hold the button pressed highlighted image appears too. After any back button once pressed all back buttons have background image.</p>
  
  <p><img src="https://i.stack.imgur.com/3RcoU.png" alt="once pressed"></p>
  
  <p>BUT! If you present modal view controller, dismiss it, then push any view controller - <code>iOS 7</code> arrow will appear at every back button.</p>
  
  <p>I use DP5. Is that a UIKit bug?</p>
  
  <p>PS Also i tried to create back button manually, using <code>UIBarButtonItem</code>, set background image to it, then <code>self.navigationItem.backBarButtonItem = barButtonItem;</code> Did not help.
  Then i tried to set background image to disabled state and change enabled property of my bar button item, did not help too.</p>
  
  <p><img src="https://i.stack.imgur.com/irtFB.png" alt="enter image description here"></p>