1:首先
- [textField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
2:其次
- -(void)textFieldDidChange :(UITextField *)theTextField{
- NSLog( @"text changed: %@", theTextField.text);
- }
iOS 监听textfield的输入(转)
原文:http://www.cnblogs.com/mafeng/p/5880451.html