1

Friends,
currently I dont have iphone to test and using Simulator for testing purposes. I am Just curious to know whether an application continues to run even after a phone call.. here i have no option to test this from simulator. If it terminates then how can i pause things.. and continue after a phone call. Is NSUserDefaults can be used for my case. As far I understood NSuserDefaults are used to store data that is required when the App is next time loaded. But here I dont want my App to terminate instead pause until Call ends and continue as uninterrupted later. Please clear me about this. Sorry I am still a beginner so I request for no harsh replies if my question looks stupid.

Thanks in Advance

4

2 に答える 2

1

iPhoneシミュレーターで通話をシミュレートすることはできません。通話の中断をテストするには、実際のiPhoneが必要です。

于 2010-06-14T14:09:27.077 に答える
1

ユーザーが通話に応答することを選択すると、アプリケーションは終了します。これを防ぐためにできることは何もありません。ユーザーが電話を受けても応答を拒否しても、アプリケーションは終了しません。

アプリケーションには、UIApplicationDelegateメソッドを使用して状態情報を保存する機会がありapplicationWillTerminate:ます。オペレーティング システムは、アプリケーションが完全に終了する前にデータを保存するための非常に短い時間を与えます。

この動作は、iOS 4.0 でのマルチタスキングによって多少変更されますが、これはまだ NDA の下にあり、ここでは説明できません。

于 2010-06-14T14:03:04.367 に答える