title: how to round corner of an image
body: <p>In order to round the corner of an image, I am doing the following</p>
  
  <pre><code>UIImageView     *myView     =   [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, size.width, size.height)];
  [myView setImage:[UIImage imageNamed:@"xcode_57X57"]];
  myView.layer.cornerRadius      =   10.0;
  myView.layer.borderWidth       =   1.0;
  myView.layer.borderColor       =   [UIColor blueColor].CGColor;
  myView.layer.shadowRadius      =   8;
  </code></pre>
  
  <p>However, what I got is the corners of myView are rounded but the corners of an image.
  The image below shows my issue. </p>
  
  <p>If you encountered this problem before, please advice me on this. </p>
  
  <p><img src="https://i.stack.imgur.com/8sZXc.png" alt="enter image description here"></p>