1, this method, call the end of the phone back to the original application, will stay in the address book, and is directly dialed, not pop-up hints
Nsmutablestring * str=[[nsmutablestring alloc] initwithformat:@ "tel:%@", @ "186xxxx6979"];
NSLog (@ "str======%@", str);
[[UIApplication sharedapplication] Openurl:[nsurl Urlwithstring:str]];
2, this method, after the call will return to the original program, will also pop up hints, recommend this
Nsmutablestring * str=[[nsmutablestring alloc] initwithformat:@ "tel:%@", @ "186xxxx6979"];
UIWebView * Callwebview = [[UIWebView alloc] init];
[Callwebview loadrequest:[nsurlrequest Requestwithurl:[nsurl Urlwithstring:str]];
[Self.view Addsubview:callwebview];
[Callwebview release];
[STR release];
3, this method will also go back to the original program (note here Telprompt), will also pop-up hints
Nsmutablestring * str=[[nsmutablestring alloc] initwithformat:@ "telprompt://%@", @ "186xxxx6979"];
NSLog (@ "str======%@", str);
[[UIApplication sharedapplication] Openurl:[nsurl Urlwithstring:str]
Reprint: http://blog.csdn.net/ouy_huan/article/details/30506925
IOS three ways to make a call summary