The following code may help you solve the problem! Have a try.
- (NSURL *)makeCall:(NSString *)number
{
NSString *txt = number;
NSString *cleanedString = [[txt componentsSeparatedByCharactersInSet:[[NSCharacterSet characterSetWithCharactersInString:@"0123456789-+()"] invertedSet]] componentsJoinedByString:@""];
NSURL *telURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@", cleanedString]];
return telURL;
}
BOOL bCanCall = [[UIApplication sharedApplication]canOpenURL:urlToCall];
if (bCanCall)
{
UIWebView *callView = [[[UIWebView alloc]init] autorelease];
[callView loadRequest:[NSURLRequest requestWithURL:urlToCall]];
[self.view addSubview:callView];
}