【发布时间】:2014-01-16 09:25:06
【问题描述】:
我有我的项目的竞争网站.. 我必须使它成为本地的 在使用 uiwebview 时 它只检测设置为打开的页面 即主页 它显示了链接,但没有打开它们
我已经在项目中包含了所有的html文件
我需要声誉才能向您显示页面图像.. 所以告诉我如何改进我的答案 或
【问题讨论】:
-
真的很紧急,请帮帮我...
-
您还需要导入 javascript 文件还是只导入 HTML 文件?
-
如果只有 html 工作,它对我来说就足够了
-
"- (void)viewDidLoad { // self.webView.dataDetectorTypes = UIDataDetectorTypeLink; [super viewDidLoad]; NSString htmlFile = [[NSBundle mainBundle] pathForResource:@"mainpage" ofType:@ "html" inDirectory:@"test"]; NSString htmlString = [NSString stringWithContentsOfFile:htmlFile encoding:NSUTF8StringEncoding error:nil]; [self.webView loadHTMLString:htmlString baseURL:nil];"
-
拜托拜托...帮我解决这个问题
标签: javascript ios xcode uiwebview