了解当前设备是否支持电话的最佳方法是什么?
iPod Touch根本不支持它,iPhone只在输入SIM密码后支持通话。
是否有类似邮件的[MFMailComposeViewController canSendMail]
方法?
提前Thx:)
答案 0 :(得分:11)
我问this same question,答案是这样的:
BOOL canCall = [[UIApplication sharedApplication]
canOpenURL:[NSURL URLWithString:@"tel:1234567"]];
答案 1 :(得分:0)
我完全忘了怎么做,但我相信有办法检查设备是否响应tel:
网址处理程序。