title: The joys of didFailLoadWithError UIWebview
body: <p>If you look at the code here:</p>
  
  <p><a href="https://github.com/evernote/evernote-sdk-ios/blob/master/evernote-sdk-ios/internal/ENOAuthViewController.m" rel="noreferrer">https://github.com/evernote/evernote-sdk-ios/blob/master/evernote-sdk-ios/internal/ENOAuthViewController.m</a></p>
  
  <p>that implement OAuth 2.0 flow in UIWebView.</p>
  
  <p>The author uses this code for the didFailLoadWithError delegate function:</p>
  
  <pre><code>- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
  {
      if ([error.domain isEqualToString:@"WebKitErrorDomain"] &amp;&amp; error.code == 102) {
  
          return;
      }
  
      if (error.code == NSURLErrorCancelled) {
          // ignore rapid repeated clicking (error code -999)
          return;
      }
  }
  </code></pre>
  
  <p>Why is he ignoring those two errors (NSURLErrorCancelled) and error code 102?</p>