I have a webview in my iPhone application, and I also have some html files inside my Resources folder. When my app loads, I load in a page from my resources into my webview. But , I need to make links inside my webview that point to some other resources (For example, images, or other html files). Just doing a relative link doesn’t work:
<a href='OtherPage.html'>Doesn't work</a>
When you load those resources, you need to set the base URL. You can do this using the method:
…where baseURL would be the file URL of your resources folder.