|
- .run([ '$rootScope', '$state', '$stateParams','$ionicPlatform','Storage', function ($rootScope,$state,$stateParams,$ionicPlatform,Storage) {
- $ionicPlatform.ready(function() {
- // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
- // for form inputs)
- if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
- cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
- }
- if (window.StatusBar) {
- // org.apache.cordova.statusbar required
- StatusBar.styleLightContent();
- }
- document.addEventListener("deviceready", function onDeviceReady() {
- // console.log('设备id:'+device.uuid);
- Storage.set('device_id',device.uuid);
- }, false);
- });
复制代码 下面这个插件配置一下,ios有输入框 内容向上是正常的,但是导航栏应该是不会动的
if (window.StatusBar) {
// org.apache.cordova.statusbar required
StatusBar.styleLightContent();
}
|
|