我怎样才能在我的项目中得到闪屏?我试着裁剪图像,但似乎没有太大帮助。现在需要11秒..我将标准值更改为3000ms,没有帮助..这是一款ionic2 angular2应用程序。
发布于 2017-02-20 18:10:33
在您的config.xml中添加
<preference name="AutoHideSplashScreen" value="false"/>然后在您的app.component.ts中添加以下内容
initializeApp() {
this.platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
StatusBar.styleDefault();
Splashscreen.hide();
}
}这样,你的闪屏只会在你的应用程序准备好的时候消失。这应该比10秒快得多
https://stackoverflow.com/questions/42341645
复制相似问题