small medium large xlarge

04 Jan 2010, 08:43
Steve Fogel (20 posts)

Hi, all…

What API can I call to test whether the device on which my native iPhone app is running is capable of making telephone calls?

I do not just want to process the tel:xxx-xxx-xxxx URL scheme when my user taps a phone number. I wan’t to get confirmation first (Call xxx-xxx-xxxx?), and I don’t even want the table cell that contains the phone number to highlight (blue) when tapped if the device is not telephony capable.



04 Jan 2010, 12:58
Bill Dudney (916 posts)

Hi Steve,

There is a UIApplication method ‘canOpenURL:’ or something to that effect that will return YES if a tel: URL can be opened.

Good luck!

You must be logged in to comment