[self callPhone:@"10010"];
- (void)callPhone:(NSString *)phoneNumber {
if (!phoneNumber) {
return;
}
NSString *urlString = [NSString stringWithFormat:@"telprompt://%@", phoneNumber];
if (@available(iOS 10.0, *)) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString] options:@{} completionHandler:nil];
} else {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]];
}
}