views:

69

answers:

1

I want the user to make a call from my application

Something like this post, but instead of sending an email, make a call http://stackoverflow.com/questions/310946/how-can-i-send-mail-from-an-iphone-application

Tanks!

+4  A: 

NOTE: This will only work on an actual iPhone (not the simulator)

[[UIApplication sharedApplication] openURL: [NSURL URLWithString:@"tel:9995551234"]];
sdolan
This code work in simulator?
caeycae
It will do nothing if you are in the simulator, but it works
caeycae
@caeycae: Sorry, I should have mentioned that. Glad it worked out for you.
sdolan