ios客户端浏览器访问本地html文件

            NSString *mainBundleDirectory = [[NSBundle mainBundle] bundlePath];
            NSString *path = [mainBundleDirectory  stringByAppendingPathComponent:requestURL];
            NSURL *url = [NSURL fileURLWithPath:path];
            NSURLRequest *request = [NSURLRequest requestWithURL:url];
            [self.baseWebView loadRequest:request];
            [ProjectUtil showLog:@"%@ loadRequest url:%@",[self description],url];
 

猜你喜欢

转载自gaobusi.iteye.com/blog/1695607