If I want to handle changes to a UITextField, such as the user typing in it; it seems like this can be done either by assigning a delegate to that text field, and then having th
I have found out that shouldChangeCharactersInRange
passes the same NSRange
for insertion and deletion of text. You append a space and then delete it, and the parameters from shouldChangeCharactersInRange
are indistinguishable from duplication of the text.
So shouldChangeCharactersInRange
actually cannot predict the resulting text.