WebView load css from local file

Posted by ADAM on Stack Overflow See other posts from Stack Overflow or by ADAM
Published on 2010-03-19T00:14:23Z Indexed on 2010/03/19 0:21 UTC
Read the original article Hit count: 836

Filed under:
|
|
[[self mainFrame] loadHTMLString:@"<html><body><link href='main.css' rel='stylesheet' type='text/css' /></body></html>" baseURL:nil];

I am trying to load a css file called main.css from the application Resources folder as below from a WebView, how do i get the path of the resources folder correct so i can load the css?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about webview