科尔多瓦iOS闪屏 [英] Cordova iOS Splash Screen

查看:275
本文介绍了科尔多瓦iOS闪屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在加载网页之前,我无法保留启动屏幕。
我已经阅读google搜索的第一,第二和第三页中的每一个条目。我阅读所有在stackoverflow上发布的问题,包括一个很好的解释,但没有工作。

I can't make the splash screen stay until the page is loaded. I have read every entry in the first, second and third page of google search. I read all the questions posted here on stackoverflow including A good explanation but none seem to work.

更糟糕的是,我看到的行为都是错误的。按照此处的说明,我在 deviceready 事件,我看到它发生在白页消失和我的初始页加载后。
我安装了插件并在根级config.xml中包含以下内容:

What's worse is that the behavior I'm seeing is all wrong. Following the instructions here I added alert at the deviceready event and I saw it happens after the white page is gone and my initial page is loaded. I installed the plugin and included the following in the root level config.xml:

<feature name="SplashScreen">
    <param name="ios-package" value="CDVSplashScreen" />
    <param name="onload" value="true" />
</feature>
<preference name="AutoHideSplashScreen" value="false" />

我仍然得到Splash->白屏 - >我的初始页。
我使用Cordova 3.3.0离子框架。
我做错了什么?

I am still getting Splash->White screen->My initial page. I am using Cordova 3.3.0 with ionicframework. What am I doing wrong?

EDIT

它可能与此错误消息有关:

I think it might have something to do with this error message:


找不到名为Default-Portrait的初始屏幕图片

The splashscreen image named Default-Portrait was not found


推荐答案

Gorpal在评论中说:

Gorpal said in a comment


请确保您使用正确的名称和大小的启动画面。 Default-Portrait〜ipad.png - 768 x 1004 Default-Portrait@2x~ipad.png - 1536 x 2008 Default〜iphone.png - 240x 320 Default@2x~iphone.png - 640x960 Default-568h @ 2x〜iphone。 png - 640x1136

Please make sure you are using right names and size of splash screen. Default-Portrait~ipad.png -- 768 x 1004 Default-Portrait@2x~ipad.png - 1536 x 2008 Default~iphone.png - 240x 320 Default@2x~iphone.png - 640x960 Default-568h@2x~iphone.png - 640x1136

这对我有用。这是关于正确的名字。

which worked for me. It's all about the correct name.

这篇关于科尔多瓦iOS闪屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆