UITextFieldTextDidChangeNotification doesn't get called on ios6 ipad3

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

have the following:

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


        
5条回答
  •  不思量自难忘°
    2021-02-14 10:02

    On my ipad3 & iOS6.0 notification UITextFieldTextDidChangeNotification work fine. put

    [[NSNotificationCenter defaultCenter]  addObserver:self
                                          selector:@selector(handleTextChange:)
                                              name:UITextFieldTextDidChangeNotification
                                            object:textField1];
    

    in your viewDidLoad

提交回复
热议问题