Reputation: 13
I need to call a number +91 (number),but if i use tel:// url it does not make a call from a iphone app. How to call a number coming in any format.
Upvotes: 0
Views: 1380
Reputation: 31722
The iphone will dial a number using either of the formats listed below.
[[UIApplication sharedApplication]
openURL:[NSURL URLWithString:@"tel://15415551234"]];
[[UIApplication sharedApplication]
openURL:[NSURL URLWithString:@"tel:15415551234"]];
[[UIApplication sharedApplication]
openURL:[NSURL URLWithString:@"tel:1-541-555-1234"]];
Link for Apple documentation on the tel: url scheme
Upvotes: 1