I need to get text from a textfield when user presses any key. I am trying to use notification UITextFieldTextDidChangeNotification to get the text but not able to succeed. How to get the text from texfield on change? I have the textfields inside a uitableview.
Share
The easiest means is to use AtomRiots answer. After all, getting the text out of textfield is what the text field delegate is for. You can set a different delegate object for each textfield in you interface even those in tables.
If for some reason you wanted an arbitrary object to handle the text change you would register the object (self) for a the notification.
If you want to listen for all UITextFieldTextDidChangeNotification from all text fields:
If you want to listen for all notifications for a particular field