title: Why HTML images are not loading in UIWebView
body: <p>I have an HTML file that is imported in my Xcode project with an image inside. The image is also inside my project folder but when I try to load the HTML file in the UIWebView the image is never loaded. </p>
  
  <p>This is my HTML file:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;  
  &lt;img src="background.png"/&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And here is my Swift code to load the HTML file:</p>
  
  <pre><code>var htmlFile = NSBundle.mainBundle().pathForResource("Travel", ofType: "html")
  var htmlString = try? String(contentsOfFile: htmlFile!, encoding: NSUTF8StringEncoding)
  weeb.loadHTMLString(htmlString!, baseURL: nil)
  </code></pre>
  
  <p>What is going wrong here? Thank you.</p>