最近,苹果发布了一项新的规格,转而采用一种新风格的情节提要屏幕,允许在较小数量的喷水屏上使用不同的设备尺寸。为了将我们的应用程序配置为与iPhone X一起使用,需要采用这个新的系统来允许全屏查看。我们的app文件结构如下:
- www
- app files
当准备上载到phonegap时,www文件夹的config.xml、res文件夹和内部内容将移动到一个文件夹中。然而,当下载应用程序到我的设备,默认的启动屏幕显示。
当前config.xml布局(运行cordova v7)
<platform name="ios">
<preference name="deployment-target" value="7.0" />
<icon height="512" src="res/icon/iTunesArtwork.png" width="512" />
<icon height="1024" src="res/icon/ios/iTunesArtwork@2x.png" width="1024" />
<icon height="180" src="res/icon/ios/Icon-60@3x.png" width="180" />
<icon height="120" src="res/icon/ios/Icon-60@2x.png" width="120" />
<icon height="60" src="res/icon/ios/Icon-60.png" width="60" />
<icon height="76" src="res/icon/ios/Icon-76.png" width="76" />
<icon height="152" src="res/icon/ios/Icon-76@2x.png" width="152" />
<icon height="40" src="res/icon/ios/Icon-Small-40.png" width="40" />
<icon height="80" src="res/icon/ios/Icon-Small-40@2x.png" width="80" />
<icon height="120" src="res/icon/ios/Icon-Small-40@3x.png" width="120" />
<icon height="29" src="res/icon/ios/Icon-Small.png" width="29" />
<icon height="58" src="res/icon/ios/Icon-Small@2x.png" width="58" />
<icon height="87" src="res/icon/ios/Icon-Small@3x.png" width="87" />
<splash src="res/screen/ios/Default@2x~iphone~anyany.png" />
<splash src="res/screen/ios/Default@2x~iphone~comany.png" />
<splash src="res/screen/ios/Default@2x~iphone~comcom.png" />
<splash src="res/screen/ios/Default@3x~iphone~anyany.png" />
<splash src="res/screen/ios/Default@3x~iphone~anycom.png" />
<splash src="res/screen/ios/Default@3x~iphone~comany.png" />
<splash src="res/screen/ios/Default@2x~ipad~anyany.png" />
<splash src="res/screen/ios/Default@2x~ipad~comany.png" />
</platform>
<plugin name="cordova-plugin-splashscreen" spec="~4.0.0" />
<preference name="ShowSplashScreenSpinner" value="false" />预期的结果是显示自定义图像,应用程序在我的iPhone X上显示整个屏幕,相反,它显示如下:
任何帮助解决这个问题将是徒劳无益的,因为我似乎找不到最近的论坛线程为任何人与这个问题。
发布于 2017-12-06 14:42:26
自我排序的答案。目前,PhoneGap构建(我正在使用的服务并不使用iOS 4.5.1发行版,这是最新的iPhone X全屏所必需的)。希望4.5.1很快就会出现在云服务中。
https://stackoverflow.com/questions/47656260
复制相似问题