title: Remove space between cell and header
body: <p>I've create a uitableview with two sections. However there seems to be some unwanted space between the second section header and the last cell in the first section (see screenshot). Does anybody know how to remove it?<img src="https://i.stack.imgur.com/shlgs.png" alt="enter image description here"></p>
  
  <p>Code per request:</p>
  
  <pre><code>func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -&gt; UIView? {
      let  headerCell = tableView.dequeueReusableCellWithIdentifier("SectionHeader") as MyRentalsScetionsHeaders
  
      switch(section){
      case 0:
          headerCell.sectionName.text = "Upcoming"
          headerCell.backgroundColor = UIColor(red: 87/255.0, green: 189/255.0, blue: 135/255.0, alpha: 1)
  
      default:
          headerCell.sectionName.text = "Ended"
          headerCell.backgroundColor = UIColor(red: 203/255.0, green: 205/255.0, blue: 200/255.0, alpha: 1)
      }
  
      return headerCell
  }
  
  func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -&gt; CGFloat {
      switch(section){
      case 0:
          return 45.0
      default:
          return 30.0
      }
  }
  
  func tableView(tableView: UITableView, heightForFooterInSection section: Int) -&gt; CGFloat {
      return 0.00001
  }
  
  func tableView(tableView: UITableView, viewForFooterInSection section: Int) -&gt; UIView? {
      return UIView(frame: CGRectZero)
  }
  </code></pre>
  
  <h2>Edit</h2>
  
  <p>My current solution is setting the height for the footer to 0.00001, which is allowed. It's not really the most ideal solution, but it looks a lot better :) if anybody know a pixel-perfect solution, I'd love that!</p>