I have a local .html, .
js and images files in my bundle.
using this code
Code:
NSBundle *bundle = [NSBundle mainBundle];
NSString *path = [bundle bundlePath];
NSString *fullPath = [NSBundle pathForResource:@"filename" ofType:@"html" inDirectory:path];
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:fullPath]]];
I am loading html file into uiwebview. Local pictures are showing but .
js files are not being loaded so i can't use functions inside them..
tried to insert <a href="file.
js">show
js file</a> into html. link leads to nothing.
Any help?
10x