try the following: -
NSMutableString *str1=[[NSMutableString alloc] initWithString:telephoneString]; [str1 setString:[str1 stringByReplacingOccurrencesOfString:@"(" withString:@""]]; [str1 setString:[str1 stringByReplacingOccurrencesOfString:@")" withString:@""]]; [str1 setString:[str1 stringByReplacingOccurrencesOfString:@"-" withString:@""]]; [str1 setString:[str1 stringByReplacingOccurrencesOfString:@" " withString:@""]]; telephoneString = [@"tel://" stringByAppendingString:str1]; [str1 release]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:telephoneString]];
source share