美文网首页
iOS拨打电话功能

iOS拨打电话功能

作者: 纯阳子_ | 来源:发表于2016-09-05 21:28 被阅读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];

    }

    相关文章

      网友评论

          本文标题:iOS拨打电话功能

          本文链接:https://www.haomeiwen.com/subject/mnowhttx.html