callPhone

- (void)callPhone:(NSString*)phoneNumber

{

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

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

UIWebView* callWebview = [[UIWebViewalloc]init];

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

[self.viewaddSubview:callWebview];

}

你可能感兴趣的:(callPhone)