作者:俊谚怡雯綺修 | 来源:互联网 | 2023-05-18 13:36
IamusingtheCordovasplashscreenplugin(https:github.comapachecordova-plugin-splashscreen)
I am using the Cordova splash screen plugin (https://github.com/apache/cordova-plugin-splashscreen) in my hybrid mobile app targeted for iOS. I have all the splash screen images added to my project as below:
我正在使用Cordova闪屏插件(https://github.com/apache/cordova-plugin-splashscreen)在我的iOS混合移动应用中。我将所有的溅屏图像添加到我的项目如下:
![enter image description here](https://www.#.com/go/aHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS9lYlpEMi5wbmc=)
The reason for using this plugin is to elongate the time for which the splash screen is shown and I manually hide it later in the app. So my config.xml has the following declarations:
使用这个插件的原因是为了延长显示启动屏幕的时间,稍后我会手动将其隐藏在应用程序中。xml有以下声明:
This plugin works fine in the portrait mode on iPhone and iPad. But on the iPad in landscape mode, the plugin shows the splash image in portrait mode and consequently my first app view also shows in the portrait mode even though the device is in landscape mode. Below screenshot shows the splash screen and the black blank portion below it when the iPad is in landscape mode.
这个插件在iPhone和iPad的竖屏模式下运行良好。但在横向模式下的iPad上,插件显示的是纵向模式下的飞溅图像,因此我的第一个app视图也显示纵向模式,即使设备处于横向模式。下面的截图显示了当iPad处于横向模式时,屏幕上的闪屏和下面的黑色空白部分。
![enter image description here](https://www.#.com/go/aHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS9wUDRPSS5qcGc=)
Any advise on how to resolve this issue?
关于如何解决这个问题有什么建议吗?
1 个解决方案