Cordova iPhone X发布图像最初显示底部的白色区域

时间:2017-11-24 06:00:21

标签: ios cordova

其他人有这个问题吗?见附图。

iPhone X模拟器上的Cordova ios启动图像最初显示底部的白色区域一秒钟,然后当状态栏文本颜色发生变化时跳转到全屏:

enter image description here enter image description here

我设置viewport-fit=cover并启动图片:

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 app not displaying correctly on iPhone X (Simulator)

1 个答案:

答案 0 :(得分:4)

这已在cordova-ios@4.5.4中修复(请参阅release notes),因此解决方案是更新到最新的cordova-ios平台版本:

cordova platform rm ios && cordova platform add ios@latest

它在错误报告中被捕获为CB-13505并已在PR cordova-ios#354中修复。