title: Image not correctly filling a UIImageView in a TableView
body: <p>I am trying to construct a tableView where the first cell is a square image the same width as the screen, but am having difficulties. Currently the UIImageView is the correct width, but there the image is not filling the UIImageView.</p>
  
  <p>Below are how the image appears on iPhone 6 and iPad 2 (I set the UIImageView background to blue to show that the UIImageView is sized correctly)</p>
  
  <p><a href="https://i.stack.imgur.com/z9VIj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z9VIj.png" alt="iPhone 6"></a> 
  <a href="https://i.stack.imgur.com/0OwG1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0OwG1.png" alt="iPad 2"></a></p>
  
  <p>So far, I have tried:</p>
  
  <ol>
  <li>Changing from "Scale To Fill" to "Aspect Fill" (That changed nothing so I kept it "Scale To Fill")</li>
  <li>Changing the Autolayout constraints on the UIImageView (but it seems to be laid out correctly, the image is just not filling it)</li>
  <li>Changing the tableview contentInset property</li>
  <li>Checking the UIImageView's borders (postImageView.layer.borderWidth) and ensuring it was 0 (it was)</li>
  <li>Searching my project to ensure the contentMode was not set programmatically somewhere else (it wasn't)</li>
  </ol>
  
  <p>Any help would be greatly appreciated.</p>
  
  <h3>Update 1</h3>
  
  <p>I printed the frames of both the cell and UIImageView</p>
  
  <pre><code>print("cell: \(self.frame)")
  print("image: \(postImageView.frame)")
  </code></pre>
  
  <p>Which resulted in (on iPad 2 Simulator)</p>
  
  <pre><code>cell: (0.0, 0.0, 768.0, 769.0)
  image: (0.0, 0.0, 768.0, 768.0)
  </code></pre>
  
  <h3>Update 2</h3>
  
  <p>All the images are saved as 640x640 square images.</p>
  
  <p>I have been able to get a UIImage to correctly size on the page before (which is a feed of images), however, when clicking into the detail view the images is incorrectly sized.
  When I tap on an image in the homefeed (TableView inside a NavigationController)
  <a href="https://i.stack.imgur.com/T7Jlc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T7Jlc.png" alt="Home Feed Screenshot"></a></p>
  
  <p>I get the detail ViewController pushed onto the NavigationController, but the image doesn't seem to fill the UIImageView...
  <a href="https://i.stack.imgur.com/iFK6O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iFK6O.png" alt="Detail View Screenshot"></a></p>