title: How can I load a .webarchive into a UIWebView from an in-memory NSData?
body: <p>I have an <code>NSData</code> containing a .webarchive blob that I'd like to load into a UIWebView. I know that this is possible (<a href="https://stackoverflow.com/questions/8378547/how-can-i-open-a-webarchive-in-a-uiwebview?rq=1">see this question</a>), and I have it working if I first serialize it to disk and then load it with UIWebView's <code>-loadRequest:</code> method. </p>
  
  <p>However, I'd prefer not to serialize to disk first since I already have the data in memory. I've tried to use <code>-loadData:MIMEType:textEncodingName:baseURL:</code> with the data, and various base URLs, but it always fails (<code>nil</code>, <code>@"http://"</code>, the actual root path that the web archive contains, etc) to load. </p>
  
  <p>Again, the same archive loads correctly if I bounce it to disk first and load via <code>-loadRequest:</code>, so I feel like something about the MIMEType (I'm using <code>application/octet-stream</code>) and/or the base URL is wrong. Anyone know what the incantation is?</p>