How to find out when the keyboard opens the first time in iOS? I want to know only the time when you click on a cell(that contains a UITextField) and the keyboard opens. After that I navigate through the UITextFields using a toolbar that contains the buttons previous and next.
Using the following code, calls keyboardWillShow when navigating through UITextFields, even though the keyboard seems to remain open after the first click on the UITextField. This method doesn’t help me for my purpose.
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardDidShowNotification object:nil];
- (void)keyboardWillShow:(NSNotification *)notification {
}
Use this Notification..It may help you
And in that keyboardWillShow method remove observer like this.