title: why can't open .docx file in uiwebview
body: <p>I'm new in iphone, I'm trying to open .docx file in UIWebView </p>
  
  <p>I used this code:</p>
  
  <pre><code>NSString *urlAddress = [[NSBundle mainBundle] pathForResource:docName 
                                                         ofType:@"docx"]; 
  
  NSLog(@"the document url address: %@", urlAddress);
  
  NSURL *url  = [NSURL fileURLWithPath:urlAddress];
  NSURLRequest *requestObj  = [NSURLRequest requestWithURL:url];
  
  [_webView loadRequest:requestObj];
  </code></pre>
  
  <p>also this code:</p>
  
  <pre><code>NSData *myData = [NSData dataWithContentsOfFile:docName];
  [_webView loadData:myData MIMEType:@"application/vnd.ms-word"
     textEncodingName:@"UTF-8" baseURL:[NSURL URLWithString:@""]];
  </code></pre>
  
  <p>and I'm sure that the file in the resource folder, 
  but when run it gives me an exception and say in main.m that </p>
  
  <pre><code>int main(int argc, char *argv[])
  {
  @autoreleasepool {
      // here it tells me that (Thread 1: signal SIGKILL)
      return UIApplicationMain(argc, argv, nil, NSStringFromClass([MFAppDelegate class]));
  }
  }
  </code></pre>
  
  <p>Any help ??</p>