IOS UISearchBar Background Color In iOS 9
<p>I have been search a while for this issue , I want my search bar display like BBC News App<a href="https://i.stack.imgur.com/MyzL4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MyzL4.png" alt="SearchBar In BBC News APP"></a></p>

<p>I try all related method</p>

<pre><code>  for view in searchBar.subviews {
        if view.isKindOfClass(NSClassFromString("UISearchBarBackground")!) {
            view.removeFromSuperview()
            break;
        }
  }

    self.searchBar.tintColor = UIColor.clearColor()
    self.searchBar.backgroundColor = UIColor.clearColor()
    self.searchBar.translucent = true
</code></pre>

<p>here is my output
<a href="https://i.stack.imgur.com/aPbdN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aPbdN.png" alt="enter image description here"></a></p>

<p>Am I miss something ??? Please Help me , thx !</p>