My application has a tab bar with two different views. On the first tab, its view has an animation with a continuous loop.
When I click on the second tab, go back to the first, the animation has stopped. I know that I can start it again in the viewWillAppear: method, but the problem is bigger. In particular, the animation will also stop if the application enters the background state and then returns to the foreground. In this case, viewWillAppear is not called in the foreground, so the viewWillAppear method will do nothing.
What is the best way to deal with this situation?
Thank.
source
share