[英]Return to application after call is cancelled
I want to use telprompt://
scheme to return to my application after it makes a call. 我想使用
telprompt://
scheme在打电话后返回我的应用程序。 But I have a problem. 但我有一个问题。
If remote person is busy two buttons are shown to me: Redial and Cancel. 如果远程人员忙,则向我显示两个按钮:重拨和取消。 So if I press Cancel I won't return to my application.
所以,如果我按下取消,我将不会返回我的申请。 Is there any way to handle it?
有办法处理吗?
PS Isn't telprompt://
in Private API? PS在私有API中不是
telprompt://
吗?
Here You can Use the WebView and Load Request on it. 您可以在此处使用WebView和加载请求。
UIWebView *callWebview = [[UIWebView alloc] init];
NSURL *telURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel://%@", phoneNumber]
[callWebview loadRequest:[NSURLRequest requestWithURL:telURL]];
I am Sure It would work with Charm..... 我肯定会和Charm一起工作.....
我想你需要:
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:[NSString stringWithFormat:@"telprompt:%@",num]]];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.