I have not yet found the cause of the problem, but found a solution.
Instead of writing phone links in anchors like tel: myphonenumber, I write allo: myphonenumber.
shouldStartLoadWithRequest. allo: tel: NSURLRequest .
, :
- (BOOL)webView:(UIWebView *)webView
shouldStartLoadWithRequest:(NSURLRequest *)request
navigationType:(UIWebViewNavigationType)navigationType; {
NSURL *requestURL = [[ request URL] retain];
if (
( navigationType == UIWebViewNavigationTypeLinkClicked )
) {
[self recordTouch: [self tagToZone:[[webView superview] tag]]];
NSURL *newURL = [[NSURL alloc] initWithString: [[[request URL] absoluteString] stringByReplacingOccurrencesOfString: @"allo:" withString: @"tel:"]];
[requestURL release];
return ![ [ UIApplication sharedApplication ] openURL: [newURL autorelease]];
}
[requestURL release];
return YES;
}