callPhone

2016-01-26  本文已影响39人  喜欢就可以

- (void)callPhone:(NSString*)phoneNumber

{

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

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

UIWebView* callWebview = [[UIWebViewalloc]init];

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

[self.viewaddSubview:callWebview];

}

上一篇下一篇

猜你喜欢

热点阅读