NSString *path=[[NSBundle mainBundle]pathForResource:@"测试一" ofType:@"docx"];
//获取内容
NSData *data = [[NSData alloc]initWithContentsOfFile:path];
NSString *string = [[NSString alloc]initWithData:data encoding:NSUTF8StringEncoding];
NSLog(@"%@",string);
UIWebView *webView = [[UIWebView alloc]initWithFrame:self.view.bounds];
webView.delegate = self;
webView.multipleTouchEnabled = YES;
webView.scalesPageToFit = YES;
NSURL *url = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];
[self.view addSubview:webView];
可以直接复制黏贴过去,改变文件名称即可,其他的没试过,就是一种doc,docx,都好使。