Reputation: 154
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...
Upvotes: 0
Views: 1287
Reputation: 2043
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.
Upvotes: 3