title: CALayer inner border corner radius
body: <p>I have a UITextView where I set the border width, border color, and corner radius properties on its layer, and the outside looks great. However, the inner part of the border doesn't have rounded corners like the outer part, and it looks kind of funny. Is there a way to round the inner corners of the border?</p>
  
  <p>Edit:
  Here's the code I used in the <code>initWithFrame:</code> method:</p>
  
  <pre><code>- (id)initWithFrame:(CGRect)frame
  {
      self = [super initWithFrame:frame];
      if (self) {
          self.backgroundColor = UIColorFromRGB(0xdedede);
          self.layer.cornerRadius = kTextFieldCornerRadius;
          self.layer.borderColor = UIColorFromRGB(0xD4974C).CGColor;
          self.layer.borderWidth = 3.0f;
          self.font = [UIFont fontWithName:@"HelveticaNeue-Bold" size:12.0f];
          [self setClipsToBounds:YES];
          [self.layer setMasksToBounds:YES];
      }
      return self;
  }
  </code></pre>
  
  <p>And here's a screenshot of what it looks like now: <img src="https://i.stack.imgur.com/lCxFX.png" alt=""></p>
  
  <p>Notice the outer corners are rounded as expected, but the inner corners of the border are pointed rather than rounded. That's what I'm trying to fix. Thanks for your help!</p>