Sunday, 24 April 2011

Load Local html file using UIWebView

Ok here is the single line you need to load local html files :

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"01" ofType:@"html"]isDirectory:NO]]];


This line loads a html-file named '01.html' which has to be located in your project resources.

No comments:

Post a Comment