WebView load javascript on the fly
Posted
by ADAM
on Stack Overflow
See other posts from Stack Overflow
or by ADAM
Published on 2010-03-19T06:50:54Z
Indexed on
2010/03/19
6:51 UTC
Read the original article
Hit count: 137
I have the following code which loads and html file into a webview
- (void)awakeFromNib{
NSString *resourcesPath = [[NSBundle mainBundle] resourcePath];
NSString *htmlPath = [resourcesPath stringByAppendingString:@"/main.html"];
[[self mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:htmlPath]]];
}
How would i dynamically load a css file (in the most efficient manner) as it does not suit to have the css file link in the html file
© Stack Overflow or respective owner