UIDevice *device = [UIDevice currentDevice];
if ([[device model] isEqualToString:@"iPhone"] ) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel://130-032-2837"]]]; //13809891621
} else {
UIAlertView *notPermittedAlertView
=[[UIAlertView alloc] initWithTitle:@"Alert" message:@"Your device doesn't support this feature." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[notPermittedAlertView
show];
[notPermittedAlertView
release];
}
iphone telephone implement
最新推荐文章于 2021-05-01 04:11:50 发布
