I have added an .html
, two .js
and one .css
file in my project and I have used following code with UIWebView for accessing the .html file
[web1 loadRequest:[NSURLRequest requestWithURL:
[NSURL fileURLWithPath:[[NSBundle mainBundle]
pathForResource:@"index" ofType:@"html"] isDirectory:NO]]];
Where web1 is my UIWebView and it is synthesized. Now when I open that page, it is without any CSS, just lines and links in order and no decoration.
And also when I click on any link, it does not show me my expected results, because .js is not working (or I should say, they are not being found by xcode, though I have added them with normal files as well as with frameworks).