title: Search bar adds extra padding on clicking it
body: <p>When I click on my search bar I get extra padding below search bar. I do have custom height set, but even if I try to take back to the default one it is giving me same problems.I added the code below now. I don't have any search bar in the storyboard. I create it with the code below  <img src="https://i.stack.imgur.com/QAeNe.png" alt="enter image description here"></p>
  
  <pre><code>import UIKit
  
  class TableViewController: UITableViewController, UISearchResultsUpdating {
      var modelData: NSMutableArray = []
      var filteredData: NSMutableArray = []
      var resultSearchController = UISearchController()
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      self.resultSearchController = ({
          let controller = UISearchController(searchResultsController: nil)
          controller.searchResultsUpdater = self
          controller.dimsBackgroundDuringPresentation = false
          controller.searchBar.sizeToFit()
  
  
          self.tableView.tableHeaderView = controller.searchBar
  
          return controller
      })()
      // Reload the table b
      tableView.reloadData()
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  
  // MARK: - Table view data source
  
  override func numberOfSectionsInTableView(tableView: UITableView) -&gt; Int {
      // 1
      // Return the number of sections.
      return 1
  }
  
  override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      // 2
      if (self.resultSearchController.active) {
          return self.filteredData.count
      }
      else {
          return self.modelData.count
      }
  }
  
  
  override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCellWithIdentifier("detailLabels") as! TableViewCell
  
      // 3
      if (self.resultSearchController.active) {
          let data = self.filteredData[indexPath.row] as? [String: String]
          cell.newNameLabel?.text = data?["Name"]
          cell.newSizeLabel?.text = data?["Size"]
          cell.newPriceLabel?.text = data?["Price"]
          return cell
      }
      else {
          let data = self.modelData[indexPath.row] as? [String: String]
          cell.nameLabel?.text = data?["Name"]
          cell.sizeLabel?.text = data?["Size"]
          cell.priceLabel?.text = data?["Price"]
          return cell
      }
  }
  
  func updateSearchResultsForSearchController(searchController: UISearchController)
  {
      filteredData.removeAllObjects()
  
      let searchPredicate = NSPredicate(format: "Name CONTAINS %@", searchController.searchBar.text)
      let array = (modelData as NSArray).filteredArrayUsingPredicate(searchPredicate)
      println(array)
      filteredData.addObjectsFromArray(array)
  
      tableView.reloadData()
  }
  </code></pre>