iOS UITextField实时监听获取输入内容,中文状态去除预输入拼音

http://blog.csdn.net/cse110/article/details/51360796

- (void)textFieldDidChange:(UITextField *)textField{  
    if (textField.markedTextRange == nil) {  
        NSLog(@"text:%@", textField.text);  
    }  
}

自带输入框, 上面显示拼音,没有点击的时候,还没显示汉字,用markedTextRange判断

原文地址:https://www.cnblogs.com/tufei7/p/8269548.html