title: Scaling any image to fit UIImageView
body: <p>I'm a little but confused as to how I could make an image taken by an iPhone camera to fit into a UIImageView of any given size. Obviously the scale would be different for each imageview so the image wouldn't "fit" perfectly. But let's say I have a UIImageView of size 200pt x 400 pt. What would be the best way to fit a <code>UIImage</code> to this <code>UIImageView</code>?</p>
  
  <p>I think I want to do something like the following:</p>
  
  <pre><code>[imageView setContentMode:UIViewContentModeScaleAspectFill];
  </code></pre>
  
  <p>This sort of works, but it seems to increase the size of my UIImageView but I don't want this...</p>
  
  <p><img src="https://i.stack.imgur.com/xvxAL.png" alt="enter image description here"></p>