- 将资源文件夹加入工程中,创建蓝色文件夹
- 获取html,展示即可
UIWebView *web = [[UIWebView alloc] initWithFrame:self.view.bounds];
[self.view addSubview:web];
NSURL *filePath = [[NSBundle mainBundle] URLForResource:@"文件目录/xxx.html" withExtension:nil];
NSURLRequest *request = [NSURLRequest requestWithURL:filePath];
[web loadRequest:request];
网友评论