UITextFieldTextDidChangeNotification doesn't get called on ios6 ipad3

后端 未结 5 1551
天命终不由人
天命终不由人 2021-02-14 09:29

have the following:

// watch the fields
[[NSNotificationCenter defaultCenter]  addObserver:self
                                          selector:@selec         


        
5条回答
  •  Happy的楠姐
    2021-02-14 09:45

    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.

提交回复
热议问题