title: tableView section headers disappear SWIFT
body: <p>I have a tableView set up so that when a cell is touched, it expands in height to reveal more information.  The tableView has 5 sections.</p>
  
  <p>I have a bug: when a cell expands, all headersCells below that cell go invisible.  The console outputs the following: "[31233:564745] no index path for table cell being reused"</p>
  
  <p>In my storyboard I have 2 custom cells : <code>"myCell"</code> for the data bearing cells, and <code>"headerCell"</code> for the headers.  </p>
  
  <pre><code>func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
  
     let thisGoal : GoalModel = goalArray[indexPath.section][indexPath.row]
  
  
      if self.currentPath != nil &amp;&amp; self.currentPath == indexPath  {
          self.currentPath = nil
      } else {
          self.currentPath = indexPath
      }
      tableView.beginUpdates()
      tableView.endUpdates()
  }
  </code></pre>
  
  <p>If I enter <code>tableView.reloadData()</code> in between the begin/end updates, it functions properly, although the header background turns black, and loses animation.  </p>
  
  <p>I have all of the stuff for headers declared in: <code>func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -&gt; UIView?</code></p>
  
  <p>what am I missing?  I'd really like the tableView to still have animations, and keep the background <code>clearColor()</code>.  </p>
  
  <p>Thanks in advance.  I did read through the objective C answers, but couldn't get them to work for me.  I'd really appreciate some SWIFT help.</p>
  
  <p>I think the problem is the no index path for table cell being reused.  </p>