I have a UITextField
where I need to replace certain characters the user may type with different ones (for example, I need to append a suffix to the text that has been entered by the user if he has tapped a space), and show the result to the user in such UITextField
.
I'm trying to directly set textField.text = "my text"
when I am notified that the text in the text field has changed, but it is not working. In the examples I have found, the text in the text field is not changed, it is only checked for certain characters without modifying texField.text
How could I change the text in a text field in code, and show there the result?