title: Using Local Resource and Relative Link in the same UIWebView
body: <p>I have a problem with a WebView. I'm loading an Html String into a web view. As base URL I need to use my site URL (because there are some relative link inside the html and I cannot modify it).
  The problem is that I also need to use some images and css that are stored inside the Application bundle.
  So I'm creating a reference to the local resource using this code (the result string is used as src in html file):</p>
  
  <pre><code>NSString *cssUrl = [NSString stringWithString:@"file:"]; 
  cssUrl = [cssUrl stringByAppendingString:[[NSBundle mainBundle] resourcePath]];
  cssUrl = [cssUrl stringByAppendingString:@"/story.css"];
  </code></pre>
  
  <p>Then I've also added:</p>
  
  <pre><code>cssUrl = [cssUrl stringByReplacingOccurrencesOfString:@"/" withString:@"//"];
  cssUrl = [cssUrl stringByReplacingOccurrencesOfString:@" " withString:@"%20"];
  </code></pre>
  
  <p>Any idea how to solve the problem and how to create a reference to a file that can be used inside a web view?
  Thanks</p>
  
  <p>Francesco</p>