I have a string variable and UITextView, when a user type something in the UITextView, the string must be updated automatically, so that it’s value changes as UITextView’s does. What I mean is this code should automatically change the string.
myString.String = textView.text;
Thank you.
Assign a
delegateto yourUITextViewand implement thetextViewDidChange:method:(assuming that
myStringis a property of your delegate)