NSURL *phoneNumberURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",@"15011330934"]];
[[UIApplication sharedApplication] openURL:phoneNumberURL];
这个没有对电话号码进行校验的部分,在实际使用的时候,需要自己去校验
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3