1:首先

 

[objc] view plain copy
 print?
  1. [textField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];  


2:其次

 

 

[objc] view plain copy
 print?
    1. -(void)textFieldDidChange :(UITextField *)theTextField{  
    2.     NSLog( @"text changed: %@", theTextField.text);  
    3. }  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2021-12-24
  • 2022-02-15
  • 2021-05-21
  • 2022-12-23
猜你喜欢
  • 2021-06-06
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
相关资源
相似解决方案