Answer the question
In order to leave comments, you need to log in
How to track the change of Text View text?
Greetings, if everything is clear with the usual Text Field, and by displaying IBOutlet & @IBAction you can easily track changes, then what about the Text View? IBOutlet outputs that the action is not available. I read somewhere what needs to be done through delegates, but this is some kind of dense forest for me now. I would really appreciate an explanation, thanks in advance!
Answer the question
In order to leave comments, you need to log in
You need to inherit from UITextViewDelegate and implement one method:
func textViewDidChange(_ textView: UITextView) {
// ...
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question