【发布时间】:2009-11-11 10:31:53
【问题描述】:
这是我的代码:
NSString *path1 = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"NewSouthWales.html"];
NSURL *pageURL = [NSURL fileURLWithPath:path1];
//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:pageURL];
//Load the request in the UIWebView.
[self.webView loadRequest:requestObj];
我的 webview 中的输出如下: 像
........
它显示页面源代码,而不是让我正确查看该文件。
请帮忙... 提前致谢
【问题讨论】:
-
我正在从资源中加载这个 html 文件。
标签: iphone