#解決iOS10及其以上系統(tǒng)彈出撥號框延遲的問題
+ (void)callPhoneWithPhoneNum:(NSString*)phoneNum
{
? ? ?NSString *phoneStr = [NSString stringWithFormat:@"tel://%@", phoneNum];
? ? ? if ([[UIDevice currentDevice].systemVersion floatValue] >= 10.0) {
? ? ? ? //10及其以上系統(tǒng)
? ? ? ? [[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneStr] options:@{} completionHandler:nil];
? ? ? ? } else {
? ? ? ? ?//10以下系統(tǒng)
? ? ? ? ?[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneStr]];
? ? }
} ?