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];

posted on 2014-01-10 13:11  trako  阅读(738)  评论(0编辑  收藏  举报

导航