iOS下拨打电话

iOS下拨打电话

- (void)callTelephone:(NSString *)telephone
{
    NSString *string = [NSString stringWithFormat:@"tel:%@", telephone];

    if (nil == self.m_webView)
    {
        UIWebView  *callWebview = [[UIWebView alloc] init];
        [self.view addSubview:callWebview];
        self.m_webView = callWebview;
    }

    [self.m_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:string]]];
}

你可能感兴趣的:(ios)