Reputation: 231
Is it possible to do a call to a predefinite number in iphone sdk with some system api?
Upvotes: 0
Views: 547
Reputation: 54445
You can do this as follows, but the user will need to accept the call placement.
NSURL *telephoneURL = [NSURL URLWithString:@"tel:01234567890"];
[[UIApplication sharedApplication] openURL:telephoneURL];
If you're attempting to place a call without the user's acknowledgement, then this (thankfully) isn't possible using the public API.
Upvotes: 5