// 判断设备是否有通话功能
        NSString *deviceType = [UIDevice currentDevice].model;
        if([deviceType  isEqualToString:@"iPod touch"]||
       [deviceType isEqualToString:@"iPad"]||
[deviceType isEqualToString:@"iPhone Simulator"]) { UIAlertView *alert=[[UIAlertView alloc] initWithTitle:@"提示" message:@"模拟器没有通话功能" delegate:nil cancelButtonTitle:@"好的,   知道了" otherButtonTitles:nil,nil]; [alert show]; return; } else { NSString *telUrl = [NSString stringWithFormat:@"telprompt:%@",personInfo.phoneNum]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:telUrl]]; }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2021-08-13
  • 2021-06-01
  • 2021-08-10
  • 2022-12-23
  • 2021-12-31
猜你喜欢
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-08-14
相关资源
相似解决方案