Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Animations disappear in iOS application after some time

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.

like image 979
kavalerov Avatar asked Sep 20 '13 15:09

kavalerov


1 Answers

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.

like image 152
kavalerov Avatar answered Sep 27 '22 22:09

kavalerov