代码如下:
- (void)callSellerButtonAction:(UIButton *)button
{
UIWebView * callWebview = [[UIWebView alloc] init];
NSString *phoneNumber = @"10086";
[callWebview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",phoneNumber]]]];
[self.view addSubview:callWebview];
}
网友评论