Global Variable

UIKeyboardDidShowNotification

Posted immediately after the display of the keyboard.

Declaration

const NSNotificationName UIKeyboardDidShowNotification;

Discussion

The notification object is nil. The userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the userInfo dictionary.

For more information about using the system keyboard, see Text Programming Guide for iOS.

See Also

Responding to Keyboard Notifications

UIKeyboardWillShowNotification

Posted immediately prior to the display of the keyboard.

UIKeyboardWillHideNotification

Posted immediately prior to the dismissal of the keyboard.

UIKeyboardDidHideNotification

Posted immediately after the dismissal of the keyboard.

UIKeyboardWillChangeFrameNotification

Posted immediately prior to a change in the keyboard’s frame.

UIKeyboardDidChangeFrameNotification

Posted immediately after a change in the keyboard’s frame.

UIKeyboardAnimationCurveUserInfoKey

The key for an NSNumber object containing a UIViewAnimationCurve constant that defines how the keyboard will be animated onto or off the screen.

UIKeyboardAnimationDurationUserInfoKey

The key for an NSNumber object containing a double that identifies the duration of the animation in seconds.

UIKeyboardIsLocalUserInfoKey

The key for an NSNumber object containing a Boolean that identifies whether the keyboard belongs to the current app. With multitasking on iPad, all visible apps are notified when the keyboard appears and disappears. The value of this key is YES for the app that caused the keyboard to appear and NO for any other apps.

UIKeyboardCenterBeginUserInfoKey

The key for an NSValue object containing a CGPoint that is the center of the keyboard in window coordinates before animation. These coordinates actually take into account any rotation factors applied to the window’s contents as a result of interface orientation changes. Thus, the center point of the keyboard is different in portrait versus landscape orientations.

Deprecated
UIKeyboardCenterEndUserInfoKey

The key for an NSValue object containing a CGPoint that is the center of the keyboard in window coordinates after animation. These coordinates take into account any rotation factors applied to the window’s contents as a result of interface orientation changes. Thus, the center point of the keyboard is different in portrait versus landscape orientations.

Deprecated
UIKeyboardBoundsUserInfoKey

The key for an NSValue object containing a CGRect that identifies the bounds rectangle of the keyboard in window coordinates. This value is sufficient for obtaining the size of the keyboard. If you want to get the origin of the keyboard on the screen (before or after animation) use the values obtained from the user info dictionary through the UIKeyboardCenterBeginUserInfoKey or UIKeyboardCenterEndUserInfoKey constants.

Deprecated
UIKeyboardFrameBeginUserInfoKey

The key for an NSValue object containing a CGRect that identifies the starting frame rectangle of the keyboard in screen coordinates. The frame rectangle reflects the current orientation of the device.

UIKeyboardFrameEndUserInfoKey

The key for an NSValue object containing a CGRect that identifies the ending frame rectangle of the keyboard in screen coordinates. The frame rectangle reflects the current orientation of the device.