title: hide multiple cells heightForRowAtIndexPath static tableview swift
body: <p>I want to change height of multiple static tableview cells to zero &amp; back to normal.</p>
  
  <pre><code>override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -&gt; CGFloat {
      if reminderHidden &amp;&amp; indexPath.section == 1 &amp;&amp; indexPath.row == 1 {
          return 0
      }
      else {
          return super.tableView(tableView, heightForRowAtIndexPath: indexPath)
      }
  }
  </code></pre>
  
  <p>I can update bool value &amp; above method works well for hiding one static cell. But it stops after returning one value. I would like to hide two static cells &amp; bring them back to normal as I change one bool value.</p>