Making a phone call with c-lens does not work IOS6

advertisements

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


How about this:

NSString *phoneStr = [[NSString alloc] initWithFormat:@"tel:%@",[[dCliente objectAtIndex:1] stringByReplacingOccurrencesOfString:@"-" withString:@""]];