title: UITableview filled with images: too much space between images
body: <p>I try to make a tableview filled with pictures. Here is what I want and my constraints:</p>
  
  <ul>
  <li>a 3:2 aspect ratio for the pictures</li>
  </ul>
  
  <p>image in cell.width = image in cell.height with a 3:2 multiplier</p>
  
  <ul>
  <li>the width of the pictures should take all the screen width</li>
  </ul>
  
  <p>image in cell.centerX = Superview.centerX</p>
  
  <p>image in cell.width = Superview.width</p>
  
  <p>Table View.Center X = Superview.Center X</p>
  
  <p>Table View.width = Superview.width</p>
  
  <ul>
  <li>space between pictures should be 8</li>
  </ul>
  
  <p>Cell.Bottom = Image In Cell.Bottom + 8</p>
  
  <ul>
  <li>other constraints :</li>
  </ul>
  
  <p>table view.top = top layout guide.bottom</p>
  
  <p>table view.bottom = red block.top</p>
  
  <p>This is what I get :</p>
  
  <p><a href="https://i.stack.imgur.com/FTInw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FTInw.png" alt="enter image description here"></a></p>
  
  <p>I have three pictures, one visible on screen and the other two visible when scrolling.
  I also have a red block at the bottom of the screen. The tableview is behind the red block.</p>
  
  <p>My issue is that there is a white space over each picture. I guess it comes from the content view or cell height that doesn't match my picture height, but I don't manage to make it right. </p>
  
  <p>With a few changes I get a correct space between pictures but the aspect ratio "on screen" is not respected anymore (= the picture width seems to go over the screen width). This is what happens if I add cell.height = Image in Cell.height. And I also get a conflict constraints for aspect = 3:2, height = Image in Cell.height, Image in Cell.width = width, and height = 400.</p>
  
  <p>Do you see what is wrong ?</p>
  
  <p>Thank you,</p>
  
  <p>Alex</p>