title: UITextField did not round the border
body: <p>I used this to round top two corners of my UITextFeild</p>
  
  <pre><code> CAShapeLayer * maskLayer = [CAShapeLayer layer];
  maskLayer.path = [UIBezierPath bezierPathWithRoundedRect: self.emailFeild.bounds byRoundingCorners: UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii: (CGSize){10.0, 10.}].CGPath;
  </code></pre>
  
  <p>I also have border added to this UITextField as</p>
  
  <pre><code> self.emailFeild.layer.borderColor = [[self colorFromHexString:@"0x3263A3"]CGColor];
  self.emailFeild.layer.borderWidth = 1.0f;
  self.emailFeild.layer.mask = maskLayer;
  </code></pre>
  
  <p>but when I run it. It did not round the corners of border and I get this result
  <a href="https://i.stack.imgur.com/WXHeu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WXHeu.png" alt="enter image description here"></a></p>