Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking incoming call in iphone

Tags:

iphone

ios4

call

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......

like image 218
Ranjeet Sajwan Avatar asked Dec 08 '25 09:12

Ranjeet Sajwan


1 Answers

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
like image 199
David Avatar answered Dec 10 '25 01:12

David



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!