【iOS开发】UITextFieldUITextView实时获取
2022-07-04 本文已影响0人
少年你这是喜脉啊
/UITextField:
[infoTextField addTarget:self action:@selector(textFieldEditChanged:) forControlEvents:UIControlEventEditingChanged];
- (void)textFieldEditChanged:(UITextField*)textField
{
realName = textField.text;
}
//UITextView:
实现其delegate⽅法 - (void)textViewDidChange:(UITextView *)textView
{
}