title: How to make rounded corners on image in uiimageview?
body: <p>I have a uiimage in a uiimageview.  the uiimage doesn't fill the entire uiimageview.  I'm trying to have a border with rounded corners, but just around the uiimage, not the entire uiimageview.  Can't figure out how to get it.  I have </p>
  
  <pre><code>homeButtonImage.layer.cornerRadius = 5;
  homeButtonImage.layer.masksToBounds = YES;
  homeButtonImage.layer.borderColor = [UIColor blackColor].CGColor;
  homeButtonImage.layer.borderWidth = 3.0;
  </code></pre>
  
  <p>but that draws the border on the entire uiimageview, not just the uiimage.  help?</p>
  
  <p>EDIT: nvm figured it out.  I had it as an IBOutlet so that was messing it up.</p>