title: Resizing UIImageView based on UITableViewCell content height using autolayout constraints
body: <p>I have a <code>UITableViewCell</code> xib with below view:
  <img src="https://i.stack.imgur.com/qRZBu.png" alt="enter image description here"></p>
  
  <p>As shown it has below components:</p>
  
  <ol>
  <li><code>UILabel</code> - dateLabel</li>
  <li><code>UILabel</code> - addressLabel</li>
  <li><code>UILabel</code> - criteriaLabel</li>
  <li><code>UIImageView</code> - separatorImageView</li>
  </ol>
  
  <p>Since I want to increase the height of cell based on contents in the labels, I added below constraints to each:</p>
  
  <p><img src="https://i.stack.imgur.com/BSJP4.png" alt="enter image description here"></p>
  
  <p>So dateLabel constraints are:</p>
  
  <p><img src="https://i.stack.imgur.com/hCdVq.png" alt="enter image description here"></p>
  
  <p>addressLabel constraints are:</p>
  
  <p><img src="https://i.stack.imgur.com/Aql48.png" alt="enter image description here"></p>
  
  <p>criteriaLabel constraints are:</p>
  
  <p><img src="https://i.stack.imgur.com/8LMLx.png" alt="enter image description here"></p>
  
  <p>Without adding constraints for <code>separatorImageView</code>, cells appear like this:</p>
  
  <p><img src="https://i.stack.imgur.com/l8t77.png" alt="enter image description here"></p>
  
  <p>ie. cells are resizing based on content which is perfect :)</p>
  
  <p>Now problem is - if I add below constraints to <code>separatorImageView</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/y7nt2.png" alt="enter image description here"></p>
  
  <p>Cells start appearing like this:</p>
  
  <p><img src="https://i.stack.imgur.com/2E5wd.png" alt="enter image description here"></p>
  
  <p>Please suggest which constraints shall I add to <code>separatorImageView</code> so that it resizes as per the height of cell without affecting proper resizing of cell.</p>