title: iOS 6 - UIWebView loadHTMLString not working properly
body: <p>If anyone experienced the issue below, please let me know if you were able to find a fix. I've spent a couple of days trying to come up with a solution, but no luck so far. I'm using XCode 4.5 with iOS 6 SDK Golden Master.</p>
  
  <p>Basically, my application reads and HTML file and hands its contents to a web view for rendering.</p>
  
  <pre><code>NSString *path = [[NSBundle mainBundle] pathForResource:@"filename" ofType:@"html"];
  NSString *html = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:NULL];
  
  NSURL *baseURL = [NSURL URLWithString:@"http://mysite.com"];
  
  [webView loadHTMLString:html baseURL:baseURL];
  </code></pre>
  
  <p>The HTML contains a few &lt;link&gt; tags, for instance:
      &lt;link href="/webshare/accounts/maxk/styles/mobile_app_iphone_article.css?1312306173" media="screen" rel="stylesheet" type="text/css" /&gt;</p>
  
  <p>The problem is, UIWebView seems to have troubles downloading the CSS file. The UIWebViewDelegate does receive webViewDidStartLoad right away, but it takes about 5 minutes before it receives webViewDidFinishLoad message. CSS is not picked up.</p>
  
  <p>If I remove the link from HTML, everything works normally.</p>