我用这行代码到本地的HTML文件加载到Web视图:NSURL参数添加到fileURLWithPath方法
NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"index" ofType:@"html" inDirectory:@"html"]];
但是我想一些HTTP参数没有运气添加到URL为止。
我已经试过这样:
url = [url URLByAppendingPathComponent:@"?param1=1"];
但经过这一个html不会在web视图加载。
有没有办法使用params在webview中加载本地html文件?
如果您在添加参数后添加了“NSlog”URL,那么它们包含在内? – rckoenes 2012-08-09 11:41:50