(IOS7)动画动作的某个时候消失 [英] (IOS7) Animation action disappears sometime

查看:192
本文介绍了(IOS7)动画动作的某个时候消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从升级到ios7我见过这个问题。结果
有时候,我跑我的应用程序(建去,或只是运行),所有的动画消失!结果
例如,推的viewController弹出或背部。结果
任何人知道为什么吗?当我继续运行它,动画回来的时候。它驱使我疯了!

I've met this problem since upgrade to ios7.
Sometimes I run my app (build to go or just run it), all animation goes away!
For example, viewController pushes or pops back.
Any one knows why? When I continue running it, the animation comes back sometimes. It has driven me crazy!!

推荐答案

这发生在我身上的iPhone6​​(IOS8.3 12F70)和X code版本是6.3(6D570)

It happens to me on the iPhone6(IOS8.3 12F70) and the Xcode version is 6.3(6D570)

在整个运行的问题后,我使用视图调试工具来捕获结果
视图层次结构。检查调试控制台 [UIView的areAnimationsEnabled] 的价值。返回FALSE /零。设置完成后它通过的UIView的类方法启用 setAnimationsEnabled:,该动画再来

After running across the problem, I use the view debugging tool to capture
the view hierarchy. Check the value of [UIView areAnimationsEnabled] in debugging console. It returns false/nil. After setting it enabled through UIView's class method setAnimationsEnabled:, The animations come back again.

我还没有什么设置禁用动画任何想法。我敢肯定,我的code没有做到这一点。即使我设置了象征性的破发点,这是很难追源。由于一大堆UIKit的方法调用 setAnimationsEnabled:,如图像设置为UIImageView的形象属性,状态栏的显示和隐藏,以及更多。

I don't yet have any idea about what set the animation disabled. And I'm sure my code doesn't do it. Even if I setting the symbolic break point, it's hard to chase the source. Because of a whole bunch of UIKit methods call the setAnimationsEnabled:, such as setting an image to UIImageView's image property, status bar showing and hiding, and a lot more.

下面的回答类似的问题,动画消失于iOS的应用程序一段时间后,希望这将有助于!

Here an answer to a similar question Animations disappear in iOS application after some time, hope it will helps!

这篇关于(IOS7)动画动作的某个时候消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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