Search code examples
iosobjective-ciphonephone-call

Making phone calls on the iPhone


How do I programmatically make phone calls on the iPhone?


Solution

  • Try this:

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

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