給textField添加
[YourTextField addTarget:self action:@selector(textFieldEditingChanged:) forControlEvents:UIControlEventEditingChanged];
只要改變輸入框里字體, 就會調用下邊的方法
- (void)textFieldEditingChanged :(UITextField *)textField{
NSLog( @"text changed: %@", textField.text);
}