I need to set the background of webView at a time when the html has not loaded.
In iOS 5.0 this code is correctly working:
- (void)viewDidLoad
{
[super viewDidLoad];
[webView stringByEvaluatingJavaScriptFromString:@"document.body.style.backgroundColor=\"#41414C\";"];
}
But in iOS 4.2 nothing happening with background.
How can I set background of web View at a time when the html has not loaded?