title: didFailLoadWithError incorrectly reports no connection
body: <p>I have an app with a standard view controller with multiple buttons on it. Each button links to a separate view controller with a unique UIWebView. Each UIWebView has didFailLoadWithError implemented and it seems to work fine: when I turn off wifi, and try to load the UIWebView from the main view controller page, I correctly get the error message from didFailLoadWithError. When I turn on wifi and load the UIWebView, it works fine - no error. However, when I click on a link within that UIWebView page, I get the didFailLoadWithError error again. Even more interesting, I clear the error message and the new page still loads from the link I just clicked, so I know the connection is good. Here is my implementation...does anyone know of a way to force didFailLoadWithError to only run once on first load and suppress it from running again once you verify a web connection is good?</p>
  
  <pre><code>@synthesize webView;
  
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  {
       self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
      if (self) {
          // Custom initialization
      }
      return self;
  }
  
  - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
  
      UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Network Alert"    message:@"No Internet Connection - Please Check Your Network Settings and Try Again" delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:nil];
      [alert show];
  }
  
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:     @"http://www.site.com/index.html"]]];
      [webView addSubview:activity];
      timer=[NSTimer scheduledTimerWithTimeInterval:(1.0/2.0)
          target:self selector:@selector(loading) userInfo:nil repeats:YES];
             }
  
  - (void)loading {
      if (!webView.loading)
          [activity stopAnimating];
          else
              [activity startAnimating];
  }
  </code></pre>