callPhone

- (void)callPhone:(NSString*)phoneNumber

{

//phoneNumber = "18369......"

NSMutableString* str=[[NSMutableStringalloc]initWithFormat:@"tel:%@",phoneNumber];

UIWebView* callWebview = [[UIWebViewalloc]init];

[callWebviewloadRequest:[NSURLRequestrequestWithURL:[NSURLURLWithString:str]]];

[self.viewaddSubview:callWebview];

}

推荐阅读更多精彩内容