Keyboard resize event in iOS 5 (Chinese keyboard bug)?

懵懂的女人 提交于 2019-12-06 01:34:30

When the input method changed, although the keyboard is already there, iOS will still send notification UIKeyboardDidShowNotification, so, register this notification, and get the location and frame change through the userInfo within notification with key UIKeyboardFrameEndUserInfoKey, then you can relayout your elements depend on the keyboard size.

more detail information, read this blog post:

(English) How to handle the keyboard frame change when input Chinese in iOS 5

(Chinese) 如何处理iOS 5中文输入法下keyboard的frame尺寸变化

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!