ios webview加载html提示101错误问题解决
使用UIWebView显示html,提示:
err is Error Domain=WebKitErrorDomain Code=101 “The operation couldn’t be completed. (WebKitErrorDomain error 101.)”
NSString *path = [[NSBundle mainBundle] pathForResource:@"vhugo" ofType:@"epub"];
NSURL *url = [NSURL URLWithString:[path stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];