title: iOS: UIImage scale to fill inside a UIView
body: <p>I am subclassing UIView, retrieving a remote image then drawing it to the view using drawRect.  This works fine, but the image is then skewed based upon what I set for my views frame.  </p>
  
  <p>I can add a contentMode of UIViewContentModeScaleAspectFill to my UIView but it doesn't seem to apply at all to my UIImage that I am drawing, it still squishes the UIImage because it follows the views frame size.</p>
  
  <p>It seems like I should do something like the following, but that just zooms the image 100% within my frame rather than following the contentMode setting:</p>
  
  <pre><code>[image drawInRect:CGRectMake(0, 0, image.size.width, image.size.height)];
  </code></pre>
  
  <p>Do I need to do something specific in drawRect: to make my image follow the contentMode property?</p>