title: How to import css file in UIWebView when I am using loadHTMLString() method in swift (iOS)
body: <p>I have a common css file and some dynamic html text. What I am trying to do is load the css file from the disk and use dynamic html text to display in the UIWebView instead of putting the same css as text over and over again with the html text. </p>
  
  <p>I am trying this way. </p>
  
  <pre><code>var sometext = "&lt;html&gt;&lt;head&gt;&lt;link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\"&gt;&lt;/head&gt;" + "&lt;body&gt;&lt;p&gt;some text goes here&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;"
  let mainbundle = NSBundle.mainBundle().bundlePath
  let bundleURL = NSURL(fileURLWithPath: mainbundle)
  self.webview.loadHTMLString(sometext, baseURL: bundleURL)
  </code></pre>
  
  <p>Now the problem is css is not getting applied to the html. Is there any one out there who can help, I think I am stuck. </p>
  
  <p>Please help. Thanks!</p>