views:

131

answers:

2

How do I programmatically make phone calls on the iPhone?

+3  A: 

Try this:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8005551212"]];

... which will bring up a dialog in which your users will confirm the call.

esqew
is there any other method other than this????
Sneha Ambure
@Sneha: why do you ask?
Michael Petrotta
other than using this code is there some other code?
Sneha Ambure
@Sneha: please describe what you're trying to do, and how seanny's answer fails to meet your requirements.
Michael Petrotta
its the right way but is there some other way also to do it???
Sneha Ambure
@Sneha: why do you want some other way? whats the problem with this one..?
lukya
I think there's no other "legal" way to do it.
iPhoneDevProf
A: 

Since you don't want to do it the way seanny94 suggests, the only other way is VoIP. Check this question or ask Skype how to do it.

lukya