iOS拨打电话功能
2016-09-05 本文已影响41人
纯阳子_
代码如下:
- (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];
}