0

I decided use telprompt to make a phone call from my app. The problem is that I need to cancel some code when user press Cancel button that appears when telprompt is called. How can detect user press Cancel button? Thanks a lot...

MByD
  • 135,866
  • 28
  • 264
  • 277
human4
  • 154
  • 2
  • 13

1 Answers1

3

Use CTCallCenter and CTCall to monitor the call state.

With CTCallCenter you can monitor when a call is dialing, connected, or disconnected.

If the phone doesn't start dialing and your app becomes active again, the user pressed Cancel.

Eric
  • 2,045
  • 17
  • 24
  • Thanks Eric for your answer. I will try your suggestion. – human4 Dec 21 '11 at 23:53
  • Hi Eric, I use CTCallCenter to check if call is dialling (CTCallStateDialing). But only if call is connected (CTCallStateConnected), I'm getting into the block where I print a log. Am I doing something wrong? – thandasoru Feb 12 '14 at 04:26