Animations disappear in iOS application after some time

。_饼干妹妹 提交于 2019-12-06 02:51:22

问题


After several minutes running all animations in my application disappeared, even system animations like alert animation and UINavigationController animations. What can be the issue?

P.S. I dont use [UIView setAnimationsEnabled] anywhere.


回答1:


Well, the answer is - system sometimes disables animations, and, normally, it enables them back on. But in my case, for some reason, it failed to set them back enabled. And this happens only during transitions between UIViewControllers. What I came up with, is to reset [UIView setAnimationsEnabled:YES] after every transition.



来源:https://stackoverflow.com/questions/18920553/animations-disappear-in-ios-application-after-some-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!