10
Usando `textField: shouldChangeCharactersInRange:`, ¿cómo obtengo el texto que incluye el carácter escrito actual?
Estoy usando el siguiente código para intentar que textField2el contenido de texto se actualice para que coincida textField1cada vez que el usuario escribe textField1. - (BOOL) textField: (UITextField *)theTextField shouldChangeCharactersInRange: (NSRange)range replacementString: (NSString *)string { if (theTextField == textField1){ [textField2 setText:[textField1 text]]; } } Sin embargo, el resultado que observo …