Common ways to call iOS
The first type:
[[Uiapplicationsharedapplication] openurl:[nsurlurlwithstring:@ "tel://1008611"];
The second type:
UIWebView *webview;
if (webView = = Nil) {
WebView = [[uiwebview alloc] init];
}
nsstring *phonestr = [nsstring stringwithformat:@ "tel://%@"@ "1008611" ];
nsurl *url = [nsurl urlwithstring:p honestr];
nsurlrequest *request = [nsurlrequest requestwithurl: url];
[webView loadrequest: request];
Effect: Two ways to call, you can go back to your app interface after the call
Different point 1: The first to pick out the program to the system call program,
The second is to run directly in your app without going out
Different point 2: The first direct trigger call interface, the second will pop up the prompt box, let you choose whether to call or cancel
The first method is private, not on the app Store, but there are actually many apps that have been launched in the first way.
The second method recommends the use of
IOS two calls to call