如果需要用本地图片的话 BASEURL 路径设置为自己的RESOURCE
如果有乱码问题;
//加载本地的html文件NSString *resourcePath = [[NSBundle mainBundle] resourcePath]; NSString *filePath = [resourcePath stringByAppendingPathComponent:@"common_problem.html"]; //以utf8的编码格式加载html内容NSString *htmlString = [[NSString alloc] initWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil]; //self.wbProblems.scalesPageToFit = YES;//将文字内容显示到webview控件上[self.wbProblems loadHTMLString: htmlString baseURL: [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]]];
联系客服