iOS : WebView Background color to transparent
background-color, ios, ios5, transparency, uiwebview
Solution
This is all it should take,
[webView setBackgroundColor:[UIColor clearColor]];
[webView setOpaque:NO];
Problem
What I want is set the background color of webview to transparent. Below is the code I am using for webview. ``` NSString *embedHTML = [NSString stringWithFormat:@"<html><body style=\"background-color: transparent;font-family: verdana;\"><h3>About US</h3></BODY></HTML>"]; [webView loadHTMLString:embedHTML baseURL:nil]; ``` However when I use this, I still see background color as WHITE. Any idea how to get color to transparent?