0

There's a way to do something like **onTextChanged** from Java? I need a dynamic mask to brazilian phone number, who is based characters numbers (## ####-#### or ## #####-####).

Is there a way to do this on Swift 3?

LMaker
  • 1,020
  • 2
  • 21
  • 33

1 Answers1

0

Hope this will help you..

textField.addTarget(self, action: #selector(textFieldDidChange(_:)), for: .editingChanged)

func textFieldDidChange(_ textField: UITextField) { }
Bapu
  • 94
  • 5