给textField添加
[YourTextField addTarget:self action:@selector(textFieldEditingChanged:) forControlEvents:UIControlEventEditingChanged];
只要改变输入框里字体, 就会调用下边的方法
- (void)textFieldEditingChanged :(UITextField *)textField{
NSLog( @"text changed: %@", textField.text);
}