I would like to know if a method like touchesBegan for touches Event exists for the iPhone keyboard. I mean just how to know when I press a key, which value is it. (Don’t display it on UITextfield or UILabel but display it with an NSLog for example).
Is there any way?
I would like to know if a method like touchesBegan for touches Event exists
Share
You want the
UITextFieldDelegate Protocolmethod:– textField:shouldChangeCharactersInRange:replacementString:The keyboard sends this every time a key is pressed so you can decide if you want to display the character associated with the key or perform some other action.