title: iOS App - Set Timeout for UIWebView loading
body: <p>I have a simple iOS native app that loads a single UIWebView. I would like the webView to show an error message if the app doesn't COMPLETELY finish loading the initial page in the webView within 20 seconds. </p>
  
  <p>I load my URL for the webView within my <code>viewDidLoad</code> like this (simplified):</p>
  
  <pre><code>[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.example.com"] cachePolicy:NSURLCacheStorageAllowed timeoutInterval:20.0]];
  </code></pre>
  
  <p>The <code>timeoutInterval</code> within the code above does not actually "do" anything, as Apple has it set within the OS to not actually time out for 240 seconds.</p>
  
  <p>I have my <code>webView didFailLoadWithError</code> actions set, but if the user HAS a network connection, this never gets called. The webView just continues to try loading with my networkActivityIndicator spinning.</p>
  
  <p>Is there a way to set a timeout for the webView? </p>