title: UIImageView: Content Mode Aspect Fit Distorts Image
body: <p>I'm trying to manually create a grid of images on the iPhone. </p>
  
  <p>I've placed all my UIImageViews correctly, and they're all linked up correctly to the code. However, I have one small issue: my images are too big, and therefore, they need downscaling.</p>
  
  <p>This shouldn't be much of a problem, as UIImageViews accept the "Aspect Fit" setting as a content mode; however, when an image is assigned to the image view, it is clearly slightly blurry and distorted.</p>
  
  <p><img src="https://i.stack.imgur.com/ORi9r.jpg" alt="Here is the original image, in full-size:"></p>
  
  <p><img src="https://i.stack.imgur.com/Iqlpt.png" alt="and here is the thumbnail image:"></p>
  
  <p>Now, it is quite obvious the second image is <em>messed up</em> in some ways, especially on the player's jersey number.</p>
  
  <p>I imagine this has something to do with the resizing algorithm utilized by the SDK; should I be resizing images on my own <em>before</em> handing them over to UIImageView, or does the problem lie somewhere else ?</p>
  
  <p>For the sake of completeness, here's the code I'm using, even though I'm certain this isn't where the problem originates from: </p>
  
  <pre><code>NSString *file = [[NSBundle mainBundle] pathForResource:@"image" ofType:@"jpg"];
  UIImage *image = [UIImage imageWithContentsOfFile:file];
  image1.image = image;
  </code></pre>
  
  <p>EDIT: I'm not sure if this is important, but the original image is in the JPG format.</p>