I have a UIButton
and a UITextField
,when the button is pressed the textfield\'s content string will be equal to: This is a test string
You can add the UITextFieldTextDidChangeNotification
:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(textFieldChanged:)
name:UITextFieldTextDidChangeNotification
object:textField];
textField
(param object) is your UITextField.
selector
is your method that will be called when this notification was fired.