have the following:
// watch the fields
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleTextChange:)
name:UITextFieldTextDidChangeNotification
object:textField1];
and then:
-(void) handleTextChange:(NSNotification *)notification {
...
}
Have a breakpoint in -handleTextChange:, but doesn’t get fired.
textField is connected in the Interface Builder.
Works on iOS6 iPhone/iPad simulator, on iOS5.1 iPad2, but not on iOS6 iPad3.
so I figured it out. What changed in IOS6 SDK is that if you change the text of textfield programmatically, it doesn’t send a notification. I have a custom keyboard on all of those views. when I tap on a key, it changes the text field text value by adding whatever I typed in. In ios 5 it would send a notification “textdidchange”, but not in ios6.