本文介绍了Ionic iOS删除默认启动屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试过
但无效
<preference name="SplashScreen" value="none"/>
之后,我也尝试了
ionic platform remove ios
ionic platform add ios
ionic emulate ios
b $ b
但不起作用
But it didn't work
其他详细信息:
vishal$ ionic -version
1.7.10
vishal$ cordova -version
5.4.0
vishal$ npm -version
2.14.7
config.xml
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
但没有运气:(
Tried vishal$ cordova plugin remove cordova-plugin-splashscreen
But no luck :(
插件列表:
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"
推荐答案
尝试移除插件
cordova plugin remove cordova-plugin-splashscreen
或参考插件项目中的文档,以在此处显示和隐藏启动屏幕。
Or refer to the docs on the plugin project for showing and hiding the splash screen here https://github.com/apache/cordova-plugin-splashscreen.
这篇关于Ionic iOS删除默认启动屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!