title: Detect the difference between the first click redirection and the end redirect page
body: <p>Android has methods like <code>shouldOverrideUrlLoading()</code>, which detects the redirect, and <code>onLoadResource()</code>, which detects when the resource loads.</p>
  
  <p>I need to detect the final landing/end URL for a given request; is there a Cocoa Touch counterpart to this? I have a <code>UIWebView</code> and it randomly opens either a "click-to-play" YouTube video loaded by an HTML script, or a regular webpage which has a click-through URL. </p>
  
  <pre><code>[_contentView loadHTMLString:_interstitialScript baseURL:nil];
  </code></pre>
  
  <p>My dilemma is this: how can I detect if the page loaded is a YouTube video, or regular webpage? My initial thought was to use something like that <code>onLoadResourse()</code> method, but I don't know what the equivalent is.</p>