离子飞溅不会产生全屏图像 [英] Ionic splash not generating full screen image

查看:115
本文介绍了离子飞溅不会产生全屏图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于离子的闪屏没有太多。根据文档,它应该非常简单。
我做的是从这里下载psd文件:

There is not much about splash screen for ionic. According to documentation it should be very simple. What I did then was to download the psd-file from here:

http://code.ionicframework.com/resources/splash.psd

然后我创建了1200X1200像素的艺术作品。我复制了艺术品并将其放在psd文件的中间。

Then I created my artwork which is 1200X1200 pixels. I copied the artwork and put it in the middle of the psd-file.

之后,我只运行命令为各种设备生成启动画面(现在测试ios)。

After that, I just run the command to generate the splash screens for the various devices (testing ios right now).

当我启动应用程序时,启动画面不会覆盖所有屏幕。它垂直居中,上下有很多空像素。我做错了什么?

When I start the app, the splash screen doesn't cover all the screen. It is centered vertically and above and below there are a lot of empty pixels. What am I doing wrong?

推荐答案

实际上离子Splash屏幕像素应 2208pixels

Actually ionic Splash screen pixels should be 2208pixels.

然后你必须用你的启动画面替换资源文件中的启动画面。

Then you have to Replace your splash screen in your resources file with your splash screen.

然后运行离子资源--splash 命令在您的终端中加载启动画面,这应该可以解决问题。

Then run ionic resources --splash command in your terminal to load your splash screen and that should do the trick.

要知道有关离子飞溅的更多信息请参见 ionic-doc

To know more about ionic-splash look here ionic-doc.

这篇关于离子飞溅不会产生全屏图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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