UITextField实时监听输入文本的变化

1 [textField addTarget:self action:@selector(textFieldChanged:) forControlEvents:UIControlEventEditingChanged];
2 
3 - (void)textFieldChanged:(UITextField*)textField{
4 
5     NSString *_string = textField.text;
6     
7 }

猜你喜欢

转载自www.cnblogs.com/luoluosha/p/11684118.html
今日推荐