title: iphone sdk button with image
body: <p>I'm trying to figure out how to do the following:</p>
  
  <p>I have a button that has an image instead of the default look. User clicks button and chooses a photo (using image picker). I want to set the image of the photo to the photo that the user has clicked.</p>
  
  <p>so, I do the following:</p>
  
  <pre><code>[self.activeBtn setImage:[info objectForKey:@"UIImagePickerControllerOriginalImage"] forState:UIControlStateNormal];
  </code></pre>
  
  <p>Unfortunately, this scales the image into the little box. What is the best way to ensure that the image is cropped by the borders of the button instead of getting scaled into it?</p>
  
  <p>Edit: want to note that I'm currently on the simulator.</p>