Possible Duplicate:
iphone sdk - Remove all characters except for numbers 0-9 from a string
i have string with a phone number as
mynumber = @"(334)687-6619";
I am using
NSString *phoneURLString = [NSString stringWithFormat:@"tel:%@", phoneNumber];
NSURL *phoneURL = [NSURL URLWithString:phoneURLString];
[[UIApplication sharedApplication] openURL:phoneURL];
to make a call. But due to "(" , ")" my method is not able to make a call.
Please suggest me to make a right string something like
"1-800-555-1212" or something like that.
Thanks