title: Opening tel: links from UIWebView
body: <p>I've searched and searched, but I can't seem to find a fix for this problem.</p>
  
  <p>For some reason, I can not get 'tel:' links to work in a UIWebView.  When the links are clicked, the message "The URL can't be shown" appears.  Clicking on the same link in Safari works perfectly and dials the number.</p>
  
  <p>This problem started with iOS 5.  These links worked perfectly in iOS 4.2 and 4.3.</p>
  
  <p>I'm not sure what other information might be useful, so please let me know if I need to clarify.</p>
  
  <p>Thanks!</p>
  
  <p>EDIT:</p>
  
  <p>Here is the actual code in use...</p>
  
  <pre><code>- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
      NSURL *url = request.URL;    
  
      if ([url.scheme isEqualToString:@"tel"]) {
          return YES;
      }
  
      if (![url.scheme isEqualToString:@"http"] &amp;&amp; ![url.scheme isEqualToString:@"https"]) {
          if ([[UIApplication sharedApplication] canOpenURL:url]) {
              [[UIApplication sharedApplication] openURL:url];
              return NO; // Let OS handle this url
          }
      }
  
      [NSThread detachNewThreadSelector:@selector(startBusy) toTarget:self withObject:nil];
      return YES;
  }
  </code></pre>
  
  <p>If I take out the first if statement, the number gets dialed immediately with no confirmation.  I'd really like it to function the way it used to by giving an alert, giving you the option to hit either 'Call' or 'Cancel' before dialing the number.</p>