views:

28

answers:

1

There is the UITextFieldDelegate protocol, which offers only one reasonable method to get notified about changes in the UITextField:

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string

This method doesn't provide the actual string like it is visible in the textField. It gets called before the text property in the UITextField updates to the new text. The string is only what has changed.

I guess the only way to find out, is to assemble the text manually from this information. How would I go about this? Must I invent the solution or is there already one?

+1  A: 
CheeseLemon
Thanks man! That was the solution. But you need UIControlEventEditingChanged instead :)
openfrog