-(void)loadDocument:(NSString*)documentName inView:(UIWebView*)webView{ NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"docx"]; NSURL *url = [NSURL fileURLWithPath:path]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; [webView loadRequest:request];}