title: UISearchBar remove background on iOS 4.1
body: <p>I'm trying to remove the background of UISearchBar to make it transparent. I tried these solutions:</p>
  
  <p>1.</p>
  
  <pre><code>for (UIView *subview in searchBar.subviews) {
  if ([subview isKindOfClass:NSClassFromString(@"UISearchBarBackground")]) {
      [subview removeFromSuperview];
      break;
  }
  }
  </code></pre>
  
  <p>2.</p>
  
  <pre><code>[[searchBar.subviews objectAtIndex:0] removeFromSuperview];
  </code></pre>
  
  <p>These two methods both work on iOS 4.3, but not on 4.1. it shows black. How can I make it work on iOS 4.1? I'm using SDK 4.3. Thanks.</p>