iOS开发- 拨打电话总结
1:利用openURL(tel)
特点:直接拨打,没有提示框
NSMutableString *str = [[NSMutableString alloc]initWithFormat:@"tel:%@",@"10001" ];
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:str]];
注意:一定要加 tel: 不然不会识别的
2:也是利用openURL(telprompt)
特点:拨打前有提示,注意: Apple的官方文档中, 没有出现过telprompt, 之前也有人使用这个, 上传审核的时候被拒绝了。(网上如是说,本人没有亲身验证)
NSMutableStrin