small medium large xlarge

Steve_passport_pragsmall
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.

Thx!

Steve

Biopic_100x100_pragsmall
04 Jan 2010, 12:58
Bill Dudney (917 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