热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Cordova屏幕插件横向模式问题-CordovasplashscreenpluginiPadlandscapemodeissue

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

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

Any advise on how to resolve this issue?

关于如何解决这个问题有什么建议吗?

1 个解决方案

#1


0  

See this commit, fixes these weird handlings on a iPad for me: https://github.com/EducationPerfect/cordova-plugin-splashscreen/commit/49bee9f86623361ef84415025ea08ea38835f387

看看这个提交,为我在iPad上修复这些奇怪的操作:https://github.com/educationperfect/cordova - plugashscreen/commit/49bee9f86623361ef84425ea0ea038835f387


推荐阅读
  • 1.webkit内核中的一些私有的meta标签,这些meta标签在开发webapp时起到非常重要的作用(1) ... [详细]
  • Apple iPad:过渡设备还是平板电脑?
    I’vebeenagonizingoverwhethertopostaniPadarticle.Applecertainlydon’tneedmorepublicityandthe ... [详细]
  • HybridApp  ‘haɪbrɪd 混合的(混合模式移动应用)是指介于web-app、native-app这两者之间的app,兼具“NativeApp良好用户交互体验的优势”和 ... [详细]
  • ZSI.generate.Wsdl2PythonError: unsupported local simpleType restriction ... [详细]
  • Android开发实现的计时器功能示例
    本文分享了Android开发实现的计时器功能示例,包括效果图、布局和按钮的使用。通过使用Chronometer控件,可以实现计时器功能。该示例适用于Android平台,供开发者参考。 ... [详细]
  • iOS超签签名服务器搭建及其优劣势
    本文介绍了搭建iOS超签签名服务器的原因和优势,包括不掉签、用户可以直接安装不需要信任、体验好等。同时也提到了超签的劣势,即一个证书只能安装100个,成本较高。文章还详细介绍了超签的实现原理,包括用户请求服务器安装mobileconfig文件、服务器调用苹果接口添加udid等步骤。最后,还提到了生成mobileconfig文件和导出AppleWorldwideDeveloperRelationsCertificationAuthority证书的方法。 ... [详细]
  • 本文介绍了iOS开发中检测和解决内存泄漏的方法,包括静态分析、使用instruments检查内存泄漏以及代码测试等。同时还介绍了最能挣钱的行业,包括互联网行业、娱乐行业、教育行业、智能行业和老年服务行业,并提供了选行业的技巧。 ... [详细]
  • [转载]从零开始学习OpenGL ES之四 – 光效
    继续我们的iPhoneOpenGLES之旅,我们将讨论光效。目前,我们没有加入任何光效。幸运的是,OpenGL在没有设置光效的情况下仍然可 ... [详细]
  • 在最近的一系列文章,对midipadAPP,有一个关于一个radialgradiant渲染每个padview利用的探讨,对审美的原因&#x ... [详细]
  • 主动降噪,通话降噪及AI降噪之辨
    主动降噪,通话降噪及AI降噪之辨-近日,三星发布的BudsPro耳机中,宣传有以下功能。其中涉及到噪声的,有主动降噪,通话降噪及智能降噪,很多人对他们的具体用途容易混淆,今天我们 ... [详细]
  • 【shell】网络处理:判断IP是否在网段、两个ip是否同网段、IP地址范围、网段包含关系
    本文介绍了使用shell脚本判断IP是否在同一网段、判断IP地址是否在某个范围内、计算IP地址范围、判断网段之间的包含关系的方法和原理。通过对IP和掩码进行与计算,可以判断两个IP是否在同一网段。同时,还提供了一段用于验证IP地址的正则表达式和判断特殊IP地址的方法。 ... [详细]
  • 一.什么是垃圾回收曾几何时,内存管理是程序员开发应用的一大难题。传统的系统级编程语言(主要指CC++)中,程序员必须对内存小心的进行管理操作,控制内存的申请及释放。稍有不慎,就可能 ... [详细]
  • LinuxSystemctl是一个系统管理守护进程、工具和库的集合,用于取代SystemV、service和chkconfig命令,初始进程主要负责控制 ... [详细]
  • AndroidWebDriverhttp:code.google.compseleniumwikiAndroidDriverSelenium官方支持的AndroidDriver支持模拟 ... [详细]
  • webpack多页运用架构系列(十四):No复制粘贴!多项目共用基础设施
    本文首发于Array_Huang的手艺博客——有效至上,非经作者赞同,请勿转载。原文地点:https:segmentfault.coma1190000007301770假如您对本系 ... [详细]
author-avatar
俊谚怡雯綺修
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有