版权声明:本文为博主原创文章,未经博主允许不得转载。转载请注明出处。
//用UIWebView
-(void)open:(NSString*)wordName andView:(UIWebView*)webView
{
NSString *path = [[NSBundle mainBundle] pathForResource:wordName ofType:nil];
NSURL *url = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];
}
[self open:@"test.doc" andView:self.myweabl];