title: "[[UIApplication sharedApplication] openURL" after Link is tapped in UIWebView - Multitasking
body: <p>I show an UIWebView inside an Application which sends it delegate methods calls, after it receives taps on links.
  In the Delegate Method</p>
  
  <pre><code>- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType
  </code></pre>
  
  <p>I catch those calls, process the link-urls and run</p>
  
  <pre><code>[[UIApplication sharedApplication] openURL:processedURL];
  </code></pre>
  
  <p>This works as intended, I end up at the right place.</p>
  
  <p><strong>Problem Multitasking:</strong>
  if I get back into my app, which is still running in the background after it closed, it will again call the "webView shouldStartLoadWithRequest" with the same link, so I end up sending the user to the page twice. Is there a preferred way to avoid this?</p>
  
  <p><strong>Solution:</strong></p>
  
  <p>You guys are totally right, I did a quite elongated if-else to analyze the given URL, but not in all branches the decision could end up in there existed a "return no"... duh, totally stupid error ;)</p>