iphone: Restart looping animation after view is hidden, then reappears?
问题 My app has a tab bar with two different views. On the first tab, its view has a continuously-looping animation. When I click on the second tab, then go back to the first, the animation has stopped. I know I could start it again in a viewWillAppear: method, but the problem is bigger than that. Specifically, the animation will also stop if the app transitions to the background state, then moves back to the foreground. In that case, viewWillAppear is not called upon the foreground transition, so