Question

what is the best way to find out whether the current device supports a phone call?

iPod Touch does not support it at all and iPhone does only support calls after entering the SIM password.

Is there a similar method like [MFMailComposeViewController canSendMail] for mail?

Thx in advance :)

Was it helpful?

Solution

I asked this same question, and the answer is this:

BOOL canCall = [[UIApplication sharedApplication]
                       canOpenURL:[NSURL URLWithString:@"tel:1234567"]];

OTHER TIPS

I forget exactly how, but I believe there's a way to check if the device responds to the tel: URL handler.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top