【发布时间】:2012-12-06 14:38:55
【问题描述】:
可能重复:
How to find out if user pressed call or cancel button when making call from my app?
我可以使用以下代码在 ios 中拨打电话号码:
NSURL *url = [NSURL URLWithString:@"tel://123"];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
UIWebView *webView = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].applicationFrame];
[webView loadRequest:request];
由于运行此代码后会显示警报视图,我如何检测用户是否按下取消按钮或呼叫按钮?
【问题讨论】:
标签: ios cocoa-touch