title: Adding an UIButton inside an UITextField
body: <p>I want to add a button with text "..." inside my UITextField. What i'm trying is the following:</p>
  
  <pre><code>@IBOutlet weak var requestTitleTxtField: UITextField!
  </code></pre>
  
  <p>viewDidLoad():</p>
  
  <pre><code>var detailsButton = UIButton()
  detailsButton.titleLabel!.text = "..."
  requestTitleTxtField.rightViewMode = UITextFieldViewMode.Always
  requestTitleTxtField.rightView = detailsButton
  </code></pre>
  
  <p>This is not returning any error message but isn't showing the button either.</p>