ios Calling is not available
Domanda
How do I know that I can not call from the device? For example for e-mail: [MFMailComposeViewController canSendMail]
Anything for calling?
Soluzione
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tel:+123456"]]) {
...
}
Altri suggerimenti
This can be used for calling :
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:12125551212"]];
Please refer this link for more:
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow