[英]Using telprompt in objective-c
I decided use telprompt to make a phone call from my app.我决定使用 telprompt 从我的应用程序中拨打电话。 The problem is that I need to cancel some code when user press Cancel button that appears when telprompt is called.
问题是当用户按下调用 telprompt 时出现的取消按钮时,我需要取消一些代码。 How can detect user press Cancel button?
如何检测用户按下取消按钮? Thanks a lot...
非常感谢...
Use CTCallCenter and CTCall to monitor the call state.使用 CTCallCenter 和 CTCall 监控呼叫 state。
With CTCallCenter you can monitor when a call is dialing, connected, or disconnected.使用 CTCallCenter,您可以监控呼叫何时正在拨号、连接或断开。
If the phone doesn't start dialing and your app becomes active again, the user pressed Cancel.如果电话没有开始拨号并且您的应用再次激活,则用户按下了取消。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.