Appdelegate:
(void)applicationWillResignActive:(UIApplication *)application
This delegate is called when the application is about to transition from an active state to an inactive one. This can happen for certain types of temporary interruptions (for example, an incoming phone call)
To restart any tasks that have been paused (or not yet started) while the application is inactive. To do this, use the appDelegate below
(void)applicationDidBecomeActive:(UIApplication *)application
To attend more multitasking applications
Hope this helps you.
source
share