I’ve tried with the code below:
NSString *phoneStr = [[NSString alloc] initWithFormat:@"tel://%@",[[dCliente objectAtIndex:1] stringByReplacingOccurrencesOfString:@"-" withString:@""]];
NSURL *url = [[NSURL alloc] initWithString:phoneStr];
[[UIApplication sharedApplication] openURL:url ];
[phoneStr release];
[url release];
Can somebody tell me What could be the problem?
I tested directly in iPhone with IOS6
Thanks for the answers, the problem was a space between tel:// and phone number.
I did this: