简体   繁体   English

为什么UIKEYBOARD高度为1024

[英]Why is the UIKEYBOARD height 1024

I am trying to get the UIkeyboard height with the following : 我正在尝试通过以下方法获取UIkeyboard的高度:

float keyboardHeight;
CGRect keyboardFrame = [[[aNotification userInfo]
                              objectForKey:UIKeyboardFrameBeginUserInfoKey]
                             CGRectValue];
keyboardHeight = keyboardFrame.size.height;

but the size it returns is 1024.00 . 但返回的大小为1024.00。 I wanted to know if this is normal. 我想知道这是否正常。

What device are you testing on? 您在什么设备上测试? On the iPad 3, in landscape, the keyboard's height is 1024 pixels. 在iPad 3(横向)上,键盘的高度为1024像素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM