The application does not exit, when a call arrives, it goes into an inactive state. The following method should be called on UIApplicationDelegate :
- (void)applicationWillResignActive:(UIApplication *)application
This method is also called in other cases, for example, when the iPhone is locked and you have no way to determine if it caused an incoming phone call.
Stephen Petschulat
source share