title: Select all text in a UITextField using Swift
body: <p>How do you programatically select all the text in a Swift text field?</p>
  
  <pre><code>var textField:UITextField = UITextField()
  textField.frame = CGRectMake(2, 25, 200, 20)
  textField.text = "hello"
  textField.font = UIFont(name: "Verdana", size: 12)
  textField.textColor = UIColor.blackColor()
  textField.backgroundColor = UIColor.whiteColor()
  </code></pre>
  
  <p>Or at least make the text immediately editable?</p>
  
  <p>Thanks</p>
  
  <p>Andrew</p>