NSURL *phoneNumberURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",@"15011330934"]];
[[UIApplication sharedApplication] openURL:phoneNumberURL];
这个没有对电话号码进行校验的部分,在实际使用的时候,需要自己去校验
Powered by: 博客园 Copyright © 2024 星尘的天空 Powered by .NET 8.0 on Kubernetes