I have a web app, all its resources are contained in a folder named "war".I've imported these into my xcode project (via File -> "Add Files to 'my project'").
Now my xcode project looks like:
MyProject
|- war
|- foo.html
|- AppDelegate.h
|- AppDelegate.m
...
so now I try loading like:
NSBundle *bundle = [NSBundle mainBundle];
NSURL *url = [NSURL fileURLWithPath:[bundle pathForResource:@"foo" ofType:@"html"] isDirectory:NO];
NSURLRequest *req = [NSURLRequest requestWithURL:url];
[self.mWebView loadRequest:req];
I don't get compile errors, but my UIWebView is empty. I do get webViewDidLoad callbacks too. Is there some other way we need to load local pages like this?
Thanks