無彈窗提示,但不返回原應(yīng)用,不建議采用
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10086"]];
有彈窗提示,能返回原應(yīng)用,建議采用
UIWebView *webView = [[UIWebView alloc]init];
NSURL *url = [NSURL URLWithString:@"tel://186*****2221"];
[webView loadRequest:[NSURLRequest requestWithURL:url ]];
[self.view addSubview:webView];
有彈窗提示,能返回原應(yīng)用,但可能被拒,不建議采用
NSURL *url = [NSURL URLWithString:@"telprompt://10010"];
[[UIApplication sharedApplication] openURL:url];