tags:

views:

9

answers:

0

Hi everybody

I am trying to make a call when a button is clicked in my iphone app, But it gives the error

Program received signal: “EXC_BAD_ACCESS”.

Below is the code i used.

      callToURLString = [NSString stringWithFormat:@"tel:%@",[PhoneNumber_ss objectAtIndex:indexrow]];
      NSLOG(callToURLString);
      [[UIApplication sharedApplication] openURL:[NSURL URLWithString:callToURLString]];

NSLOG displays the string value ( eg tel:+41 341 405 )

Kindly some one say why it gives Program received signal: “EXC_BAD_ACCESS”.

Thanks in advance