In application deletion, there are two methods in which you can pass information to the view controller that performs the animation.
- (void)applicationWillResignActive:(UIApplication *)application { // Make note of whether or not the animation is running. // Using NSUserDefaults is probably the simplest } - (void)applicationDidBecomeActive:(UIApplication *)application { // Check your user default setting to see if the animation // was running when the app resigned active and then restart it }
Of course, this means that you will need a link to your view controller that performs the animation in your applicationโs application, or you can use notifications to send notifications. In any case, on the bottom line you will have to make sure that the application is activated again and restarts the animation.
source share