I want to detect whenever the user presses any keyboard key.
Any method which is called only on typing any character and not when keyboard is shown.
Thanks!!
Assuming the keyboard is showing as a result of the user tapping on a UITextfield, you can make yourself the delegate and implement this method:
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
It will be called every time a user presses a key.