title: UITextField - scroll to left
body: <p>I am creating UITextField programmaticaly for taking email addresses to send emails. When user enters multiple email adresses and text becomes longer than the textfield length than as usual text shifts in left side.
  But I am not able to scroll to left if I want to edit the first email address I entered.</p>
  
  <p>Here is the code to create Textfield:</p>
  
  <pre><code>    let ToTextField = UITextField(frame: CGRectMake(140, 150, 500, 40))
      ToTextField.text = "To"
      ToTextField.textColor = UIColor(red:204/255, green:204/255, blue:204/255, alpha:1.0)
      ToTextField.font = UIFont.systemFontOfSize(15)
      ToTextField.borderStyle = UITextBorderStyle.RoundedRect
      ToTextField.autocorrectionType = UITextAutocorrectionType.No
      ToTextField.autocapitalizationType = UITextAutocapitalizationType.None
      ToTextField.keyboardType = UIKeyboardType.Default
      ToTextField.returnKeyType = UIReturnKeyType.Done
      ToTextField.clearButtonMode = UITextFieldViewMode.WhileEditing
      ToTextField.contentVerticalAlignment = .Center
      ToTextField.contentHorizontalAlignment = .Left
      ToTextField.tag=776756
      ToTextField.delegate = self
      self.SendMessageForm.addSubview(ToTextField)
  </code></pre>
  
  <p>Is there any way to make it scroll horizontally left-right direction?</p>