ios - ipad开发中使用外置键盘判断及如何获取弹出条高度
PHP中文网
PHP中文网 2017-04-18 09:51:55
0
1
497

ipad开发中遇到的一个bug,使用软键盘时计算弹出高度并修改textfeild位置

[Notification.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]

问题:当使用蓝牙键盘时会只弹出上图的view而不显示键盘,此时如何判断是否使用外置键盘,及如何获取此view高度

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
Ty80

Get the y value from Rect to determine the y-axis position of the keyboard, subtract this value from the screen height to get the viewg height

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!