简体   繁体   English

iOS键盘高度不同

[英]ios keyboards are different height

i have a really weird situation with my app. 我的应用程序有一个非常奇怪的情况。

I am showing a default keyboard in my app but it looks stretched (see screenshot 1) 我在我的应用程序中显示一个默认键盘,但看起来很拉伸(请参见屏幕截图1) 键盘高度不一样

this does not happen in other apps like twitter (see screenshot 2) 在其他应用程序(例如twitter)中不会发生这种情况(请参见屏幕截图2) 比较Twitter和Imessage时的高度相同

anyone have an idea? 有人有主意吗?

I ran into this problem as well. 我也遇到了这个问题。 If you are running your app on an iPhone 6 or 6 Plus and have not yet provided app launch images for those particular devices then the iOS will scale the screen size up instead of calculating UI elements based on the actual size of the device. 如果您在iPhone 6或6 Plus上运行应用程序,但尚未为这些特定设备提供应用程序启动图像,则iOS将放大屏幕尺寸,而不是根据设备的实际尺寸计算UI元素。

Solution: Provide launch images for all device sizes. 解决方案:提供适用于所有设备尺寸的启动映像。

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

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