Search code examples
objective-ctelprompt

Using telprompt in objective-c


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


Solution

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