Just to clarify my response above. Yes, the method loadHTMLString:baseURL: works to load HTML code and have it rendered in the WebView.
My cryptic comment above meant to say that I assumed from the doc that the String in question was the filename of the page (with baseURL setting the base URL), not the content of the page. The doc says:
Sets the string to use for the main page of the document to string, and the base URL to URL.The base URL allows relative URLs within a document.
which makes no sense to me whatsoever. I don't understand the 'string to use for the main page of the document to string' sentence at all, and I'm not sure why a base URL has anything to do with this method, if you just use it to load an HTML content string. Anybody want to offer some insight?