UIWebView how to load local file with parameters -- Handled!
楼主在网上查找资料无数始终解决不了,苦思冥想,使用如下两句话解决问题:
NSURL *baseUrl = [NSURL fileURLWithPath: baseDir isDirectory: YES];
NSURL *fileUrl = [NSURL URLWithString: [@"a.html" stringByAppendingString: @"?a=1"] relativeToURL: baseUrl];
NSURLRequest *request = [NSURLRequest requestWithURL: url];
|
阅读(642) | 评论(0) | 转发(0) |