title: How to change inside background color of UISearchBar component on iOS
body: <p>I know how to remove/change <code>UISearchBar</code> background color around search field:</p>
  
  <pre><code>[[self.searchBar.subviews objectAtIndex:0] removeFromSuperview];
  self.searchBar.backgroundColor = [UIColor grayColor];
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/TlLAH.png" alt="achieved UISearchBar customization"></p>
  
  <p>But don't know how to do this inside it like that:</p>
  
  <p><img src="https://i.stack.imgur.com/mQbUj.png" alt="desired UISearchBar customization"></p>
  
  <p>This needs to be compatible with iOS 4.3+.</p>