title: UITextField - Rounded corner issue
body: <p>I bring the issue forward which I face. I am creating a <code>UITextField</code> programmatically as below.</p>
  <pre><code>UItextField *mobileNumberField = [[UITextField alloc] initWithFrame:CGRectMake(10, 195, 300, 41)];
  mobileNumberField.delegate = self;
  mobileNumberField.borderStyle = UITextBorderStyleRoundedRect;
  [mobileNumberField.layer setCornerRadius:14.0f];
  mobileNumberField.placeholder = @&quot;Mobile Number&quot;;
  [self.paymentsHomeView addSubview:mobileNumberField];
  </code></pre>
  <p>The output is the attached image.</p>
  <p><img src="https://i.stack.imgur.com/VMP5P.png" alt="enter image description here" /></p>
  <p>I dont know why is it breaking at the corners. Help me to fix my text field like the image attached below.</p>
  <p><img src="https://i.stack.imgur.com/DyvNe.png" alt="enter image description here" /></p>