title: Make custom cell's ( created with autolayout) height to zero
body: <p>I want to make height of a custom tableview cell to zero, which was created with autolayout. Basically I have container view added as subview to cell.contentview. Container view's top, bottom, left and right are pinned to content view's  top, bottom, left and right. Under certain condition I want to make height as 0.</p>
  
  <p>I iterated through content views's constraints and found this constrain causing the problem.</p>
  
  <p><em>NSLayoutConstraint:0x1369d8670 UITableViewCellContentView:0x1369b1a90.height == 48</em> </p>
  
  <p>This constraint is added by default by tableview. </p>
  
  <p><strong>Things I Tried</strong> : I removed all subviews of container view. But this does not make cell height to zero.</p>
  
  <p><strong>Things I don't want to do</strong>:</p>
  
  <ol>
  <li>I dont want to reload entire tableview coz I will be having many rows with many subviews.         </li>
  <li>I don't want to delete row</li>
  </ol>
  
  <p>How can I set height to zero?</p>