title: Use a WebView to run JavaScript
body: <p>I want to use a simple WebView to fetch the content of a website, which includes JavaScript. I don't want to really show the WebView, I only want to get the source code of the site. The view where I will load the request from, is not in the window hierarchy. The method is getting called from another view. 
  Something like this:</p>
  
  <p>MainView.m:</p>
  
  <pre><code> [[HelperView alloc]LoadWebview];
  </code></pre>
  
  <p>HelperView.m:</p>
  
  <pre><code>-(void)LoadWebview {
  
          webView = [[UIWebView alloc]init];
          [webView setDelegate:self];
          [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com/"]]]; 
          [self.view addSubview:webView];
  }
  </code></pre>
  
  <p>Is it possible to use the delegate methods from this WebView in a view, which is not in the window hierarchy, or is there a better way to solve this problem?</p>