/ / UITextField at: [infoTextField addTarget:self action:@selector(textFieldEditChanged:) forControlEvents:UIControlEventEditingChanged]; - (void)textFieldEditChanged:(UITextField*)textField { realName = textField.text; } //UITextView: implement its delegate method - (void)textViewDidChange:(UITextView *)textView {NSLog(@"text:%@", textView. }Copy the code