UIWebView 加载本地html文件

NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle]pathForResource:@"info.html" ofType:nil]];

NSURLRequest *request = [NSURLRequest requestWithURL:url];

[webView loadRequest:request];

你可能感兴趣的:(html,UIWebView,文件)