iPhone SDK: How to determine keyboard type within a UIKeyboardDidShowNotification?

Posted by iPhone Developer on Stack Overflow See other posts from Stack Overflow or by iPhone Developer
Published on 2011-01-08T17:49:49Z Indexed on 2011/01/08 17:53 UTC
Read the original article Hit count: 147

Filed under:

Hello, I need to know the current keyboard type. I was setting an instance variable in

- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField

However, testing has shown that this is not always reliable because of the asynchronous nature of notifications.

What I am wondering is if anyone can tell me how to determine the current keyboard type within a notification?

- (void)keyboardDidShow:(NSNotification *) {
    // Need way to determine keyboard type here
  }

Thanks.

© Stack Overflow or respective owner

Related posts about iphone