Thursday 15 September 2011

Weird functioning of Application event in iPhone -


The iPhone app stops when any call is accepted by the user. When the call ends, the app will resume.

I have so much I tried, I wanted to capture that event begins when the app after the call ends on applications representatives: - (void) applicationWillTerminate: (UIApplication *) application - (void ) applicationDidFinishLaunching: (UIApplication *) application - (zero) applicationDidBecomeActive: (UIApplication *) application - (minus) applicationWillResignActive: (UIApplication *) application

visual load: viewDidLoad ViewwillAppear

But none of the above events can happen. Do not know how I will know that having users back after receiving the call

A phone The first time an application representative receives an applicationWillResignActive: The message displays incoming call dialogs.

The user declined the call, the application representative receives a applicationDidBecomeActive message and can resume the application.

If the user accepts the call, the application representative receives a applicationWillTerminate message and you must prepare the app to stop.

After the call is completed you can not force the system to restart your app.

If you can not be called a representative of these methods, the more likely it is that you have a representative has not been specified properly

It you are not supposed to answer another UIViewController message to your app representatives can make their confused with a view controller with the app delegate to 'Wudidlod. In

Edit 01:

On the second reading, it seems that the app would like to resume the state, which before dropping it in response to calls did.

If so, then not really to trap an event. When an app restarts after a call, it does not get a special event, as it starts when the user launches it. I think what you need to do is save the application status before closing and then reset it to the next time it starts.


No comments:

Post a Comment