I just noticed that i am getting warnings about .
js files
warning: no rule to process file '$(PROJECT_DIR)/CanvasGraph.
js' of type sourcecode.javascript for architecture i386
Maybe I need set some rule in Xcode for
js files??
If yes, what should i do?
Quote:
Originally Posted by romeos28
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
|