Good day! Actually, I understand how to do this using the Touch Up Inside buttons, but I would like what the application would consider itself (without a click. Upon changing text in a textField, each new character entered or deleted will transfer the amount to textLabel).

  • If you are given the correct answer, do not forget to tick it opposite. This will be useful for those who later stumble on this topic + will be thanks to the author of the answer in the form of reputation. - Denis

1 answer 1

The easiest option (see also this answer about checking ):

one

enter image description here

2

enter image description here

3 You think it is necessary.

@IBAction func myTfToCheck(_ sender: UITextField) { if let text = sender.text { let textLength = text.characters.count // и здесь устанавливаете в label } } 
  • Thanks for the most competent programmer! From 3 times figured out. Everything counts as he wanted! - Igor Ivanov
  • @IgorIvanov accept the answer then :) - Max Mikheyenko