title: Autolayout tableview cell with three autosize regions
body: <p>I am trying to create a Table View Cell that has three pronounced regions.
  The top region is conditional so it doesn't always show.
  The Middle region is my main region where general information is.
  The Middle region can be clicked and that expands/shows the bottom region aka <em>show more</em>, <em>show less</em> functionality.</p>
  
  <p>All regions heights need to be auto sized based on their contents.</p>
  
  <p>What I tough of doing is making each region a separate UIView. And when I need to hide top or bottom region I just constrain their width to 0.</p>
  
  <p>I need to know if all this would be possible with auto layout as I have never used it. Is this the correct way of doing it?</p>
  
  <p><a href="https://i.stack.imgur.com/YZH0P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YZH0P.png" alt="enter image description here"></a></p>