Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

taroman

macrumors newbie
Original poster
Mar 15, 2011
3
0
Hello Everyone, I am a newbie in iphone development, yet wondering why i am not able to find any help regarding the keyboard keyup/keydown events, I actually want to detect which key is been pressed by the user via keyboard on iphone while inputting the text in the UITextField. I need an urgent help!! .....

EX... Input OneCharacter in TextField1 and jump input characte TextField2...


Thanks in advance
 
Last edited:
Why would you want to detect each key that is pressed?

you need to add more detail to your question so people know how to help.
 
Why would you want to detect each key that is pressed?

you need to add more detail to your question so people know how to help.



Input OneCharacter in TextField1 and jump input characte TextField2...
 
I still have no idea what u mean..
If u mean, when u press Enter, it switches to the next textfield, then please try to put ur question in a good order, I don't wonna post the links, that show you how to make questions on forums.
 
The textField:shouldChangeCharactersInRange:replacementString: method will be called on the UITextField delegate object for every single key press.

of course that's not true! don't bother, that's a wrong answer. some keys are not working with this method (backspace, return, etc...). proper solution is to create your own implementation of the UIKeyInput protocol. you can find a good example here:
http://jeffreysambells.com/posts/2010/04/21/iphone-os-3-2-uikeyinput-example/
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.