次のコードを使用して目的の c で「doc」ファイルを開きますが、同じコードを使用して docx ファイルを開くと、シミュレーターで開かれず、エラー「EXCEPTION CPMessageException: (null)」がスローされます。docx を開くために何か変更が必要かどうか、誰か教えてもらえますか?
NSString *filePath = [@"/Applications/" stringByAppendingPathComponent:@"test.doc"];
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(10, 10, 600, 1200)];
[webView loadData:[NSData dataWithContentsOfFile:filePath] MIMEType:@"application/msword" textEncodingName:@"UTF-8" baseURL:[NSURL URLWithString:@"http://w.google.com"]];
[self.view addSubview:webView];