Susee
Susee

Reputation: 13

Call to a phone number through iPhone App

Hi iPhone developers, I want to add a feature in my iPhone app, they are: call to a phone number in my app after call end, relaunch the previous app. I know its not possible in iphone OS 3.2.. Is it possible in iOS 4? I need your help...

Upvotes: 1

Views: 600

Answers (1)

esqew
esqew

Reputation: 44710

You can't call a number directly from your app. You can use this snippet to launch the phone app:

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

... and after the call is done it will return you to your app.

Upvotes: 5

Related Questions