Possible Duplicate:
how to make phone call by using objective c?
I am trying to make a call when I click on the tableview row.
But it is not working.
Here is the code snippiest.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if ([indexPath row] == 0) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"1800-000-000"]];
}
}
I don’t know why it is not working.
Can anyone help me with this?
try this link I think it will help you
https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/PhoneLinks/PhoneLinks.html
this ll work try this: