Splashscreen wrong since XCode 7

回眸只為那壹抹淺笑 提交于 2019-12-04 06:30:00

问题


I took over a project using AngularJS, Ionic and Bootstrap to create hybrid apps for mobile devices.

Prior to upgrade to XCode 7 all went well. I updated my HTML-, CSS- and JS-code in editor, ran grunt run:ios to create platform code and opened XCode. From there I built the .ipa-file without any issues (justwith some warnings, which could be ignored).

However since using XCode 7 (needed for iOS 8- and iOS 9-devices), the splascreen will be shown incorrectly. Meaning: Rotated with 90°.

Note #1: The splashscreen and the app have to be Landscape-only.

Note #2: When running grunt run:android, all is well on the Android-based device.

Any idea what to do in order to get the old correct state again?


回答1:


There is a known bug in the cordova-plugin-splashscreen plugin relating to your issue ( Issue CB-10244 ). Try to update this plugin to cordova-plugin-splashscreen@3.1.0 by re-adding it:

cordova plugin rm cordova-plugin-splashscreen
cordova plugin add cordova-plugin-splashscreen


来源:https://stackoverflow.com/questions/34919547/splashscreen-wrong-since-xcode-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!