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
2010-07-30 05:07:38
is there any other method other than this????
Sneha Ambure
2010-07-30 05:19:26
@Sneha: why do you ask?
Michael Petrotta
2010-07-30 05:25:31
other than using this code is there some other code?
Sneha Ambure
2010-07-30 05:42:39
@Sneha: please describe what you're trying to do, and how seanny's answer fails to meet your requirements.
Michael Petrotta
2010-07-30 05:56:30
its the right way but is there some other way also to do it???
Sneha Ambure
2010-07-30 06:10:33
@Sneha: why do you want some other way? whats the problem with this one..?
lukya
2010-07-30 06:29:16
I think there's no other "legal" way to do it.
iPhoneDevProf
2010-07-30 06:33:11
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
2010-07-30 06:42:34