IOS 调用拨打电话Api
2014-03-13 15:13
274 查看
// 判断设备是否有通话功能 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]]; }
相关文章推荐
- IOS 调用拨打电话
- IOS程序调用拨打电话的两种方式
- iOS 调用系统原生拨打电话
- iOS——实现调用拨打电话
- IOS开发之—— 客服QQ(调用qq网页聊天),客服热线(拨打电话)
- 在iOS开发中,经常需要调用其它App,如拨打电话、发送邮件等。UIApplication:openURL:方法是实现这一目的的
- iOS开发 解决WKWebView加载的h5,无法调用拨打电话功能
- iOS程序中调用系统自带应用(短信,邮件,浏览器,地图,appstore,拨打电话)
- iOS 程序中调用系统自带应用(短信,邮件,浏览器,地图,appstore,拨打电话)
- iOS——实现调用拨打电话
- iOS程序中调用系统自带应用(短信,邮件,浏览器,地图,appstore,拨打电话)
- iOS中调用短信、电话、邮件、Safari浏览器API
- IOS中调用系统拨打电话发送短信
- iOS程序中调用系统自带应用(短信,邮件,浏览器,地图,appstore,拨打电话)
- IOS 调用拨打电话
- iOS程序中调用系统自带应用(短信,邮件,浏览器,地图,appstore,拨打电话)
- iOS两种调用拨打电话方式(亲测)
- iOS程序中调用系统自带应用(短信,邮件,浏览器,地图,appstore,拨打电话)
- iOS——调用系统拨号程序拨打电话
- IOS中调用系统拨打电话与发送短信