callPhone

作者: 喜欢就可以 | 来源:发表于2016-01-26 21:28 被阅读39次

    - (void)callPhone:(NSString*)phoneNumber

    {

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

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

    UIWebView* callWebview = [[UIWebViewalloc]init];

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

    [self.viewaddSubview:callWebview];

    }

    相关文章

      网友评论

          本文标题:callPhone

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