iOS 拨打电话

来源:互联网 发布:软件成功案例 编辑:程序博客网 时间:2024/05/16 07:10

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

    [[UIApplication sharedApplication] openURL:[NSURLURLWithString:str] options:nilcompletionHandler:^(BOOL success) {

        if (success) {


        }else {


        }

    }];

0 0
原创粉丝点击