How can I load a local HTML file into the UIWebView?
Cody Gray is right but there's also this way :
// Load the html as a string from the file systemNSString *path = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"];NSString *html = [[NSString alloc] initWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];// Tell the web view to load it[WebView loadHTMLString:html baseURL:[[NSBundle mainBundle] bundleURL]];
This is useful if you need to edit the html before you load it.