title: UITableViewCell not dynamically resizing using Swift
body: <p>I am trying to dynamically resize my UITableView Cells in swift:</p>
  
  <p><a href="https://i.stack.imgur.com/DTYsR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DTYsR.png" alt="enter image description here"></a></p>
  
  <p>Above is my cell setup for the smallest possible screen size (iPhone 4). The green view (an image) will enlarge if the screen width increases and retain its aspect ratio. It's pinned to the top, leading edge trading edge and aspect ratio enabled. The label below is centered horizontally. The top pinned to the bottom of the image and the height and width fixed.</p>
  
  <p>I have this code in viewDidLoad:</p>
  
  <pre><code>tableView.estimatedRowHeight = 262
  tableView.rowHeight = UITableViewAutomaticDimension
  </code></pre>
  
  <p>If I run the app I get the warning:</p>
  
  <p><em>Warning once only: Detected a case where constraints ambiguously suggest a height of zero for a tableview cell's content view. We're considering the collapse unintentional and using standard height instead.</em> The cell is also the wrong size only about 25pts in height. What am I doing wrong here?</p>