title: UIWebView: open some links in Safari, some within the view
body: <p>My app features content that (for text formatting reasons) is presented in an UIWebView. Within the content there are links, some of which should open their target in mobile Safari, while others should navigate within the content.</p>
  
  <p>So far, I've catched the link requests using a UIWebView delegate. In my implementation of</p>
  
  <pre><code>-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
  </code></pre>
  
  <p>I'd check the requests URL using <code>lastPathComponent</code> or <code>pathComponents</code> for known elements to determine whether to open the link externally or within the view.</p>
  
  <p>However, I just found out said methods are only available since iOS 4.0, which would render the app useless on iPad. Plus I have the feeling I'm using a dirty solution here.</p>
  
  <p>Is there another way to somehow "mark" the links within my content in a way that makes them easy to distinguish later, when processing the request in the delegate method?</p>
  
  <p>Thanks alot!!</p>