廢話少說直接上代碼:
//呼叫
NSMutableString *str=[[NSMutableString alloc] initWithFormat:@"tel:%@",@"139xxxxxxxxx"];
UIWebView *callWebview = [[UIWebView alloc] init];
[callWebview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:str]]];
[self.view addSubview:callWebview];