title: How to disable actions while UIWebView loads?
body: <p>I created the following code to check whether there's an internet connection or not when a page is loading. If there isn't; a message will pop up. If there is, nothing pops up.
  The problem I am having is that when there's an internet connection and the UIWebView is loading and at the same time I press other buttons like back or forward, the message of No Internet Connection pops up! Any idea how could I avoid this? Is there a way to disable other actions while my UIWebView loads?</p>
  
  <p>Code:</p>
  
  <pre><code>- (void)webView:(UIWebView *)NBC didFailLoadWithError:(NSError *)error
  { 
      UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"No Internet Connection" 
                        message:@"Please verify your connection" 
                        delegate:self cancelButtonTitle:@"Dismiss"
                        otherButtonTitles:/*@"Verify", */nil];
      [alert show]; 
      [alert release]; 
  }
  </code></pre>
  
  <p>Many thanks for your help!</p>