NSBundle* bundle = [NSBundle mainBundle]; NSString* resPath = [bunder resourcePath]; NSString* filePath = [resPath stringByAppendPathComponent:@"test.html"]; [WebView loadHTMLString:[NSString stringWithContentsOfFile:filePath] baseURL:[NSURL fileURLWithPath:[bundle bundlePath]]];
NSString *fullPath = [NSBundle pathForResource:@"test" ofType:@"html" inDirectory:[[NSBundle mainBundle] bundlePath]]; [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:fullPath]]];