How to handle a phone call while running the application on iphone

I am using a drawing application. when drawing any picture, if I received any phone call, the application leaves the game and opens again immediately after the call is completed. But my requirement is that I would have to draw a drawing while I am in an incoming call.

Anyone can help me

+3
source share
3 answers

When a phone call arrives, and the user picks it up, he will always leave the current application, and the phone application will start. I do not think you can change this behavior.

, , "" , "" , .

, , , , , .

+3

, , . .

+2

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.

+1
source

All Articles