title: Tab bar color become black when hidden swift
body: <p><a href="https://i.stack.imgur.com/CiVr5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CiVr5.png" alt="enter image description here"></a></p>
  
  <p>as you can see from the picture, the tab bar color is black. I hide the tab bar when segmented control tapped</p>
  
  <pre><code>@IBAction func segmentedControlTapped(sender: AnyObject) {
      if segmentedControl.selectedSegmentIndex == 1 {
          self.viewUIPickerView.viewWithTag(10)?.hidden = false
          self.viewUIPickerView2.viewWithTag(11)?.hidden = true
      }else {
          self.viewUIPickerView2.viewWithTag(11)?.hidden = false
          self.viewUIPickerView.viewWithTag(10)?.hidden = true
      }
  
      self.tabBarController!.tabBar.hidden = true
  
  }
  </code></pre>
  
  <p>and i try using<code>hidesBottomBarWhenPushed = true</code> still doesnt work.</p>