title: CGRect image resizing
body: <p>I'm using CGRect to display an image. I'd like the CGRect to use the width and height of the image without me specifying it.</p>
  
  <p>can this:</p>
  
  <pre><code>CGRectMake(0.0f, 40.0f, 480.0f, 280.0f);
  </code></pre>
  
  <p>become this:</p>
  
  <pre><code>CGRectMake(0.0f, 40.0f, myImage.width, myImage.height);
  </code></pre>
  
  <p>some images get distorted when I specify the parameters.</p>
  
  <p>here's the code:</p>
  
  <pre><code>CGRect myImageRect = CGRectMake(0.0f, 40.0f, 480.0f, 280.0f);
  UIImageView *myImage = [[UIImageView alloc] initWithFrame:myImageRect];
  [myImage setImage:[UIImage imageNamed:recipe.img]];
  </code></pre>
  
  <p>thanks for any help.</p>