问题
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