title: Presenting ViewController from UIWebView delegate
body: <p>I have a <code>UIWebView</code> with a delegate <code>id&lt;UIWebViewDelegate&gt;</code>. When I click on links in the UIWebView, I get the <code>NSURLRequest</code> object in the callback:</p>
  <pre><code> - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
  </code></pre>
  <p>What I'm trying to do is:</p>
  <pre><code>- (void)presentWebViewControllerWithUrl:(NSURL*)URL{
        SVModalWebViewController *webViewController = [[SVModalWebViewController alloc] initWithURL:URL];
        webViewController.modalPresentationStyle = UIModalPresentationPageSheet;
        webViewController.availableActions = SVWebViewControllerAvailableActionsOpenInSafari | SVWebViewControllerAvailableActionsCopyLink | SVWebViewControllerAvailableActionsMailLink;
        [self presentModalViewController:webViewController animated:YES];
  }
  </code></pre>
  <p>When I place this code in my main view controller, the modal web view appears, but it doesn't if I place it in my delegate. How do I make it appear?</p>
  <hr />
  <h3>update:</h3>
  <p>Returning <code>NO</code> from the <code>shouldStartLoadWithRequest</code> simply makes my UIWebViews turn white, with no content. It seems that the callback is being called when the webviews load. I am loading locally stored <code>HTML</code> into them with <code>[web loadHTMLString:@&quot;...&quot; baseUrl: nil]</code>
  The modal never appears.</p>
  <p>My view hierarchy is as follows:</p>
  <ol>
  <li>MainView
  <ul>
  <li>UIView
  <ul>
  <li>UIScrollView
  <ul>
  <li>UIWebView</li>
  <li>UIWebView</li>
  <li>...</li>
  </ul>
  </li>
  </ul>
  </li>
  </ul>
  </li>
  </ol>
  <p>Is there a way to &quot;bubble&quot; up the callbacks so that I can see the event in my main view controller?</p>