title: UITextField Set Border
body: <p>I want to make my login interface a little bit more fancy. So I wanted to build somethin like this:</p>
  
  <p><img src="https://i.stack.imgur.com/grGzT.png" alt=""></p>
  
  <p>Thats what i Have to far:</p>
  
  <pre><code>    self.usernameTextField.layer.borderWidth = 1.0f;
  self.usernameTextField.layer.borderColor = [[UIColor colorWithRed:171.0/255.0 green:171.0/255.0 blue:171.0/255.0 alpha:1.0] CGColor];
  self.usernameTextField.layer.cornerRadius = 5;
  self.usernameTextField.clipsToBounds      = YES;
  
      self.passwordTextField.layer.borderWidth = 2.0f;
  self.passwordTextField.layer.borderColor = [[UIColor colorWithRed:171.0/255.0 green:171.0/255.0 blue:171.0/255.0 alpha:1.0] CGColor];
  self.passwordTextField.layer.cornerRadius = 5;
  self.passwordTextField.clipsToBounds      = YES;
  </code></pre>
  
  <p>How can I connect them? There is still a gap between the two UITextFields..</p>