2012-02-28 12 views
0

私のアプリケーションの使用中に着信コールまたはテキストメッセージが到着するたびにマークしようとしています。私のアプリは自動車の安全性を扱っているので、これは文書化のためです。着信コールとテキストメッセージをマークする

これを追跡する方法はありますか?私は、コール/テキストがいつ来るのかを知る必要があります。追加データはありません。

+0

がある場合は、あなたのAppDelegateでこのメソッドが呼び出されますはい。しかし、私はあなたのアプリをアクティブにする必要があると思う... – Ganzolo

答えて

1

あなたは呼び出しが呼び出しが行われているとき見るために戻ってそこにある新しいCoreTelephonyフレームワークを確認することができ、そのような中断

- (void)applicationWillResignActive:(UIApplication *)application 
{ 
    /* 
    Sent when the application is about to move from active to inactive state. This can  occur for certain types of temporary interruptions (such as an incoming phone call or SMS  message) or when the user quits the application and it begins the transition to the background  state. 
    Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES  frame rates. Games should use this method to pause the game. 
    */ 
} 
関連する問題