NSString *phoneNum = @"020-888888";
NSString *callPhone = [NSString stringWithFormat:@"telprompt://%@", phoneNum];
/// 解决iOS10及其以上系统弹出拨号框延迟的问题
/// 方案一
if ([[UIDevice currentDevice].systemVersion floatValue] >= 10.0) {
/// 10及其以上系统
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:callPhone] options:@{} completionHandler:nil];
} else {
/// 10以下系统
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:callPhone]];
}
10-10
1877