title: iOS7, backgroundImage for UISearchBar
body: <p>I'm making the transition of the UI between iOS 6 and iOS 7. </p>
  
  <p>We have a UISearchBar related to a UISearchDisplayController, I have set the backgroundImage of the navigationBar and the searchBar to a 1x1 image dynamically created with a color. </p>
  
  <pre><code>self.searchDisplayController.searchBar.translucent = NO;
  self.searchDisplayController.searchBar.barTintColor = [UIColor clearColor];
  self.searchDisplayController.searchBar.tintColor = [UIColor myTintColor];
  self.searchDisplayController.searchBar.backgroundImage = [self imageWithColor:[UIColor myBGColor]];
  self.searchDisplayController.searchBar.scopeBarBackgroundImage = [self imageWithColor:[UIColor myBGColor]];
  </code></pre>
  
  <p>On iOS6, everything works as expected. 
  On iOS7, when the searchBar is selected, the scopeBar appears with the good backgroundImage (set with searchBar.scopeBarBackgroundImage) but the searchBar is a kind of translucent gray. When I press on Cancel, the searchBar backgroundImage is back.</p>
  
  <p><img src="https://i.stack.imgur.com/wNLP2.png" alt="How it looks"></p>
  
  <p>/////////////////////////////////////////////////////////////////////////////////////////////////////</p>
  
  <p>EDITED QUESTION</p>
  
  <p>/////////////////////////////////////////////////////////////////////////////////////////////////////</p>
  
  <p>Actually, I did use the barTintColor and other options here and there but it doesn't work. That is the result with the barTintColor set with the same color. But there is this white layer on top
  <img src="https://i.stack.imgur.com/9j1Lv.png" alt="enter image description here"></p>