I have a requirement where I need to copy the content from one UITextField into another UITextField on the same screen. It’s like an alias, as soon as the user start typing I should start copying the content. I’m using method (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
The problem is that I have to implement also logic to delete the content. I’m pretty sure that there is a more convenient mechanism.
Any help will be appreciated.
Many thanks,
Marcos.
To Update your string it’s like this :
after that assign
strto your other textfield and it sould be ok.