Thanks for the suggestion, I implemented it but I used "hasPrefix". I tested it to make sure it worked with both kinds of links (http and https).
Dylan

Date: Sat, 5 Jan 2013 17:00:11 -0800
From: notifications@github.com
To: MTPopupWindow@noreply.github.com
CC: dylan.crocker@live.com
Subject: Re: [MTPopupWindow] Added a MTPopupWindow delegate protocol and a property "use Safari". (#2)

In TabPopupTest/MTPopupWindow.m:
> @@ -329,6 +339,18 @@ - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
>      if (_loader) [_loader removeFromSuperview];
>  }
>  
> +-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType;
> +{
> +  if (self.usesSafari) {
> +    NSURL *requestURL =[request URL];
> +    if (([[requestURL scheme] isEqualToString: @"http"]) && (navigationType == UIWebViewNavigationTypeLinkClicked)) {

use beginsWith to match both http and https protocols

            
              —

              Reply to this email directly or view it on GitHub.