title: Expand UITableViewCell with multiple sections
body: <p>I want to expand my UITableViewCells with a UITableView that has multiple sections. The way I'm doing it is as follows: </p>
  
  
  
  <pre><code>func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
      selectedRowIndex = indexPath
      habitTableView.beginUpdates()
      habitTableView.endUpdates()
  }
  
  func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -&gt; CGFloat {
      if (selectedRowIndex != nil &amp;&amp; indexPath == selectedRowIndex!){
  
          return 147
      }
      return 90
  }
  </code></pre>
  
  <p>However there are some strange behaviors, for example, if one cell expands it sort of "eats up" the next section header underneath it so the section header disappears. I am just wondering - is there any nuances with a UITableView that has multiple sections?</p>