用UIWebView就可以了
-(void)loadDocument:(NSString*)documentName inView:(UIWebView*)webView
{
    NSString *path = [[NSBundle mainBundle] pathForResource:documentName ofType:nil];
    NSURL *url = [NSURL fileURLWithPath:path];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [webView loadRequest:request];
}

// Calling -loadDocument:inView:
[self loadDocument:@"test.doc" inView:self.myWebview];

相关文章:

  • 2022-02-26
  • 2021-10-13
  • 2021-12-05
  • 2021-11-28
  • 2021-12-23
  • 2022-12-23
  • 2022-02-02
  • 2022-02-16
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-06-03
  • 2022-01-15
  • 2021-12-27
  • 2022-02-10
相关资源
相似解决方案