title: Load a page from documents folder on ios
body: <p>I have an App which moves all HTML files to my own folder on the iPhone: file:///var/mobile/Containers/Data/Application/AD332281-2ADE-4809-ABF2-F3FC3004AF42/Documents/MOTHER-APP/index.html </p>
  
  <p>and </p>
  
  <p>file:///var/mobile/Containers/Data/Application/AD332281-2ADE-4809-ABF2-F3FC3004AF42/Documents/MOTHER-APP/css/mother.css</p>
  
  <p>The problem is when the App access's the index.html file no CSS files are available. I have tested if the index file and the CSS file exists and it is all there. </p>
  
  <p>I have tried both:</p>
  
  <pre><code>webView.loadHTMLString(indexfile, baseURL: baseUrl)   
  webView.loadFileURL(destinationURLForFile, allowingReadAccessTo: 
  destinationURLForFile)
  </code></pre>
  
  <p>The HTML index file requests the CSS like this:</p>
  
  <pre><code>&lt; link rel="stylesheet" type="text/css" href="css/mother.css" /&gt;
  </code></pre>
  
  <p>All of the above code works perfectly on any simulator but not on a real device</p>