实时监听textField输入中文内容的时候拼音,拼音不跟着响应
- (void)viewDidLoad {[super viewDidLoad];UITextField *textField = [[UITextField alloc]initWithFrame:CGRectMake(100, 100, 100, 30)];[self.view addSubview:textField];[textField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];}- (void)textFieldDidChange:(UITextField *)textField{if (textField.markedTextRange == nil) {NSLog(@"text:%@", textField.text);}}