Check for split keyboard

后端 未结 4 1479
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-13 11:08

As many of you know iOS 5 introduced a slick split keyboard for thumb-typing. Unfortunately, I have some UI that is dependent on the normal full-screen keyboard layout. One

4条回答
  •  情歌与酒
    2020-12-13 11:40

    The notifications that are posted when the keyboard appears or changes its position (UIKeyboardWillShowNotification, UIKeyboardWillChangeFrameNotification) contain a userInfo dictionary with the frame of the keyboard (UIKeyboardFrameEndUserInfoKey) that allows you to position your UI elements correctly, depending on the actual size and location of the keyboard.

提交回复
热议问题