Skip to content

Instantly share code, notes, and snippets.

@daoseng33
Last active August 17, 2018 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daoseng33/c48c1fa337757eafc7fa3d2112aa540d to your computer and use it in GitHub Desktop.
Save daoseng33/c48c1fa337757eafc7fa3d2112aa540d to your computer and use it in GitHub Desktop.
inputTextField.addTarget(self, action: #selector(textFieldDidChange(_:)) , for: UIControlEvents.editingChanged)
@objc func textFieldDidChange(_ textField: UITextField) {
// text field did change
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment