I am writing an iOS app, and I want to intercept the key which has been pressed and send the character to another part of the program, as well or instead of to the associated text field. Is there a way to do this?
Asked
Active
Viewed 182 times
1 Answers
1
Yes. The delegate method textField:shouldChangeCharactersInRange:replacementString: lets you do what ever you like before the value is added to the text of the text field. You can even decide not to set it on the text field or set some completely different text.

dasdom
- 13,975
- 2
- 47
- 58