这里是我的代码:无法加载HTML文件的WebView
的NSString *路径1 = [[[一个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文件。 – Nic 2009-11-11 10:33:49