On iOS 8, keyboards can be different heights. When the user switches between keyboards, or changes the height of the current keyboard, how can I detect this?
Listen to the UIKeyboardWillChangeFrameNotification
notification.
Use UIKeyboardFrameBeginUserInfoKey
and UIKeyboardFrameEndUserInfoKey
values in the passed userInfo
dictionary to retrieve the current and future frame of the keyboard.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.