离子转换仅在ios中获得白页 [英] Ionic transitions getting white page only in ios

查看:131
本文介绍了离子转换仅在ios中获得白页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个应用程序在离子和它的工作完美的Android,模拟器和网络(与离子发球)。但是,当突然显示一个白色视图而不是显示它的视图时,在iOS设备上运行时,突然显示一个白色视图。这不会一直发生,并且我没有发现具体发生时的情况。



感谢任何帮助。

解决方案

最后,我解决它,这是一个在ios中进行离子转换的问题。将这行添加到app.js中的配置中,就像这样

  .config(函数($ stateProvider,$ urlRouterProvider,$ ionicConfigProvider){ 
$ ionicConfigProvider.views.swipeBackEnabled(false);
}

全部禁用后面的导航过渡与滑动。


Im developing an app in ionic and its working perfectly fine in android, emulators and web (with ionic serve). But when is running in ios devices in transitions between pages suddenly it shows a white view instead the view that it have to display. This doesn't happen all time and i didn't figured out when specifically happen.

I appreciate any help.

解决方案

Finally I resolve it, it was a problem with transitions of ionic in ios. Adding this line to config in app.js like this

    .config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider) { 
        $ionicConfigProvider.views.swipeBackEnabled(false);
    }

Disable all back navigations transitions with swipe.

这篇关于离子转换仅在ios中获得白页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆