iOS 打电话

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

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

2.直接拨打

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


你可能感兴趣的:(ios)