title: How to scale UIImage using width and keep ratio
body: <p>I have a <code>UIImage</code> that is much smaller than the <code>UIImageView</code> I am applying it too, I would like to know how to scale the <code>UIImage</code> to fit the width of the <code>UIImageView</code> but keep the width x height ratio of the original small image.</p>
  
  <p>This is what my code looks like pre any sort of scaling </p>
  
  <pre><code>playerImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10.0, 222.0, self.playerView.frame.size.width-20, 245.0)];
  playerImageView.contentMode = UIViewContentModeBottom;
  UIImage *placeholderImage = [UIImage imageNamed: @"placeHolderVault.png"];
  [playerImageView setImage:placeholderImage];
  </code></pre>