Reputation: 7993
Is it possible to display an html present in my NSString
into a UIWebView
?
My solution is to write the html into a file and afterwards, parse it like this:
[WebView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]isDirectory:NO]]];
However, I would prefer a more elegant solution.
Upvotes: 1
Views: 1133