title: UIImageView image stretched even though contentMode = UIViewContentModeScaleAspectFit
body: <p>I am really disappointed by the way UIImageView displays the image.</p>
  
  <p>I have following piece of code:</p>
  
  <pre><code>UIImageView *imgview = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 300, 100)];
  imgview.image = [UIImage imageNamed:@"img.JPG"];
  imgview.backgroundColor = [UIColor greenColor];
  imgview.contentMode = UIViewContentModeScaleAspectFit;
  [self.view addSubview:imgview];
  </code></pre>
  
  <p>What I get is a following screenshot:</p>
  
  <p><a href="http://img26.imageshack.us/img26/3686/screenshot20130123at629.png">http://img26.imageshack.us/img26/3686/screenshot20130123at629.png</a></p>
  
  <p>[image is stretched to full width of UIImageView and does not even take full height]</p>
  
  <p>Original image:</p>
  
  <p><a href="http://img248.imageshack.us/img248/341/screenshot20130123at638.png">http://img248.imageshack.us/img248/341/screenshot20130123at638.png</a></p>