在iphone中检查来电 [英] Checking incoming call in iphone
本文介绍了在iphone中检查来电的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已阅读 CoreTelephony 类,并在此 CTClass 可以检查呼叫者并找到呼叫状态....
I have read about the CoreTelephony class and in this CTClass can check caller and find state of call....
但是当和如何使用这个......
But when and how to use this......
我认为我的应用程序在通话开始时会转到后台。
请帮助或纠正我。 .....
I think my application goes to background when call start..
help please or correct me......
推荐答案
官方SDK无法实现。您可以做的最好的事情是确定用户是否正在通话。您可以通过检查状态栏框架的大小来执行此操作。
It is not possible with the official SDK. The best that you can do is determine if the user is on a call. You can do this by inspecting the size of the status bar frame.
[UIApplication sharedApplication].statusBarFrame
这篇关于在iphone中检查来电的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文