Cordova iPhone X发布图像最初显示底部的白色区域 [英] Cordova iPhone X launch image initially shows white area at bottom
问题描述
其他人有这个问题吗?见附图。
Anyone else had this issue? See attached images.
iPhone X模拟器上的Cordova ios启动图像最初在底部显示白色区域一秒钟,然后在状态栏文本颜色发生变化时跳转到全屏:
Cordova ios on the iPhone X simulator the launch image initially shows white area at bottom for a second and then jumps to full screen when status bar text color changes:
我有 viewport-fit = cover
设置和启动图片是:
I have viewport-fit=cover
set and launch images are:
Default@2x~iphone~anyany.png (= 1334x1334 = 667x667@2x)
Default@2x~iphone~comany.png (= 750x1334 = 375x667@2x)
Default@2x~iphone~comcom.png (= 750x750 = 375x375@2x)
Default@3x~iphone~anyany.png (= 2436x2436 = 812x812@3x)
Default@3x~iphone~anycom.png (= 2436x1242 = 812x414@3x)
Default@3x~iphone~comany.png (= 1242x2436 = 414x812@3x)
Default@2x~ipad~anyany.png (= 2732x2732 = 1366x1366@2x)
Default@2x~ipad~comany.png (= 1278x2732 = 639x1366@2x)
相关: Cordova应用程序无法在iPhone X(模拟器)上正确显示
推荐答案
此问题已修复在 cordova-ios@4.5.4
(参见发行说明),因此解决方案是更新到最新的 cordova-ios
平台版本:
This has been fixed in cordova-ios@4.5.4
(see the release notes), so the solution is to update to the latest cordova-ios
platform version:
cordova platform rm ios && cordova platform add ios@latest
它在错误报告中被捕获为 cordova-ios#354 。
It was captured in a bug report as CB-13505 and fixed in the PR cordova-ios#354.
这篇关于Cordova iPhone X发布图像最初显示底部的白色区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!