I have a simple question. I have two files. There are .html and .js files. I need to use .js file with my html content.
Right now I just have added method to load html from resources, but I have not found how to integrate .js to my UIWebView yet.
This is my code how I load html
[self.theWebView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"test" ofType:@"html"]]]];
I know about stringByEvaluatingJavaScriptFromString method but as I think it will work with concrete function but in my case I have file with many function and I need to load all of them.