popToViewControllerAnimated 自 ios5 起不再动画 [英] popToViewControllerAnimated does not animate since ios5

查看:16
本文介绍了popToViewControllerAnimated 自 ios5 起不再动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如主题所述,调用 popToRootViewControllerAnimated/popToViewControllerAnimated 不再做任何动画.

as topic describes, calling popToRootViewControllerAnimated / popToViewControllerAnimated does not do any animation anymore.

我使用的代码在 4.x 上运行良好,很简单

the code I use, which works fine with 4.x, is simply

[self.navigationController popViewControllerAnimated:YES];

所以这里没有什么特别的.我刚刚注意到,对于我在 iOS5 上运行的所有应用程序,弹出动画都消失了.但是会出现推送动画.

so nothing special here. I just noticed, that for all my apps, running on iOS5, pop-animations have been gone. push-animations however DO appear.

现在我想知道要搜索什么,是否需要定义该动画的过渡/样式?

now i wonder what to search for, if there is the need to define the transition/style of that animation?

欢迎任何帮助,谢谢!

推荐答案

好吧,在viewWillDisappear"中调用[super viewWillAppear]"有点……我的错!

Okay, calling "[super viewWillAppear]" in "viewWillDisappear" is sort of ... my bad!

这篇关于popToViewControllerAnimated 自 ios5 起不再动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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