views:

183

answers:

2

I have a piece of code (my app) which I want to run for each incoming call in the iphone.

So I'm looking for a function like: On Before Incoming Call ();

is there anything like that?

+1  A: 

Check the UIApplicationDelegate method

- (void)applicationWillResignActive:(UIApplication *)application

In case of incoming telephony interruption this method will be invoked!

mihirpmehta