How do you load the contents of a local html file similar to this (simplified)
<html>
<body>
some text and <p>'s and stuff here
</body>
</html>
into a UIWebView on the iphone?
The html code is stored in a .html file and the UIWebView is called contentLabel
I have tried :
[contentLabel loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"ConcerningWMF" ofType:@"html"]isDirectory:NO]]];
but this puts the actual code onto the page and doesnt render the code
how do i make it not DISPLAY the code but rather RENDER the code?
Thanks in advance