Ionic iOS删除默认的启动画面

时间:2015-11-29 13:28:56

标签: cordova ionic-framework splash-screen splash

我尝试了this

但是没有工作

<preference name="SplashScreen" value="none"/>

在此之后我也尝试了

ionic platform remove ios
ionic platform add ios
ionic emulate ios

但它没有工作

其他详情:

vishal$ ionic -version
1.7.10

vishal$ cordova -version
5.4.0

vishal$ npm -version
2.14.7

config.xml中

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.ionicframework.splashscreenapp489828" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
  <name>splashscreenApp</name>
  <description>
        An Ionic Framework and Cordova project.
    </description>
  <author email="hi@ionicframework" href="http://ionicframework.com/">
      Ionic Framework Team
    </author>
  <content src="index.html"/>
  <access origin="*"/>
  <preference name="webviewbounce" value="false"/>
  <preference name="UIWebViewBounce" value="false"/>
  <preference name="DisallowOverscroll" value="true"/>
  <preference name="android-minSdkVersion" value="16"/>
  <preference name="BackupWebStorage" value="none"/>
  <preference name="SplashScreen" value="none"/>
  <feature name="StatusBar">
    <param name="ios-package" value="CDVStatusBar" onload="true"/>
  </feature>
  <platform name="ios">
    ...
  </platform>
</widget>

请帮助:(

修改

尝试vishal$ cordova plugin remove cordova-plugin-splashscreen 但没有运气:(

插件列表:

vishal$ cordova plugin list
com.ionic.keyboard 1.0.5 "Keyboard"
com.phonegap.plugins.PushPlugin 2.5.0 "PushPlugin"
cordova-plugin-console 1.0.2-dev "Console"
cordova-plugin-inappbrowser 1.0.2-dev "InAppBrowser"
cordova-plugin-x-toast 2.2.0 "Toast"
io.litehelpers.cordova.sqlite 0.7.10 "Cordova sqlite storage plugin"

1 个答案:

答案 0 :(得分:2)

启动画面由cordova-plugin-splashscreen提供。尝试删除插件

cordova plugin remove cordova-plugin-splashscreen

或者参考插件项目上的文档来显示和隐藏初始屏幕here