title: Loading UIWebView blocks scrollview animation
body: <p>I'm trying to load a web view with data during a scroll animation occurs. Animation call is like that:</p>
  
  <pre><code>[scrollView scrollRectToVisible:aFrame animated:YES];
  </code></pre>
  
  <p>The problem is, if a web view load process overlaps with the scrollview animation, animation is stuttered, not a smooth animation occurs. It seems like load process is blocking main thread, so animation doesn't work as expected.</p>
  
  <p>What can i do in order to solve this problem? In some posts people suggest to put webview as subview in the last part of </p>
  
  <pre><code>- (void)webViewDidFinishLoad:(UIWebView *)theWebView
  </code></pre>
  
  <p>method. But loaded data is not visible if i do like that.</p>
  
  <p>Thanks for help.</p>
  
  <p>EDIT 1:</p>
  
  <p>@Vlad</p>
  
  <p>This solution is not working i guess. I'm calling webview load like this:</p>
  
  <pre><code>dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^(void) {
      [_webView loadHTMLString:htmlString baseURL:[NSURL fileURLWithPath:path]];
  });
  </code></pre>
  
  <p>But I see that although loadHTMLString: baseURL: method is called in a non main thread, </p>
  
  <pre><code>- (void)webViewDidStartLoad:(UIWebView *)theWebView
  </code></pre>
  
  <p>and</p>
  
  <pre><code>- (void)webViewDidStartLoad:(UIWebView *)theWebView
  </code></pre>
  
  <p>methods are called in main thread. So this method didn't provide me an improvement.</p>
  
  <p>Also as a detail, time passed between webViewDidStartLoad and webViewDidFinishLoad methods are nearly 0.3 secs.</p>
  
  <p>What else to do?</p>