I am trying to show the changes made to a UITextField on a separate UILabel . Is there a way to capture the full text of a UITextField after every character the user enters? I am currently using this method, but it does not capture the last character entered by the user.
I know that a UITextView has a didChange method, but I could not find this method for a UITextField .
//does not capture the last character -(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { [self updateTextLabelsWithText: textField.text]; return YES; }
How can I extract text from a UITextField after entering each character?
Thank!
ios objective-c iphone uitextfield
Alex Stone Apr 28 2018-12-12T00: 00Z
source share