iOS 打电话

来源:互联网 发布:淘宝lolita代购 编辑:程序博客网 时间:2024/04/29 23:05

1.会弹框让用户确定是否拨打

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"telprompt://%@",185****2662]]];

2.直接拨打

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel://%@",185****2662]]];


0 0
原创粉丝点击