event to detect ipad default keyboard hide key is pressed

1.8k Views Asked by At

Is there any event or method to detect that I pressed the ipad's default hide keyboard button?

enter image description here

1

There are 1 best solutions below

1
On BEST ANSWER

You can use these notifications:

UIKeyboardWillHideNotification - Posted immediately prior to the dismissal of the keyboard.

UIKeyboardDidHideNotification - Posted immediately after the dismissal of the keyboard.

Source: Managing the Keyboard